Skip to content

Commit 3e0fb2c

Browse files
Expose shader validation (#4811)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
1 parent 63657b3 commit 3e0fb2c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

wgpu-core/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ pub mod registry;
6666
pub mod resource;
6767
pub mod storage;
6868
mod track;
69-
mod validation;
69+
// This is public for users who pre-compile shaders while still wanting to
70+
// preserve all run-time checks that `wgpu-core` does.
71+
// See <https://github.com/gfx-rs/wgpu/issues/3103>, after which this can be
72+
// made private again.
73+
pub mod validation;
7074

7175
pub use hal::{api, MAX_BIND_GROUPS, MAX_COLOR_ATTACHMENTS, MAX_VERTEX_BUFFERS};
7276

0 commit comments

Comments
 (0)