From 3e0fb2c14eb4618989bed1e6abafd6774e2ffc87 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Wed, 6 Dec 2023 22:06:04 +0100 Subject: [PATCH] Expose shader validation (#4811) Co-authored-by: Connor Fitzgerald --- wgpu-core/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wgpu-core/src/lib.rs b/wgpu-core/src/lib.rs index 4d5646d2b9..e68debdcb8 100644 --- a/wgpu-core/src/lib.rs +++ b/wgpu-core/src/lib.rs @@ -66,7 +66,11 @@ pub mod registry; pub mod resource; pub mod storage; mod track; -mod validation; +// This is public for users who pre-compile shaders while still wanting to +// preserve all run-time checks that `wgpu-core` does. +// See , after which this can be +// made private again. +pub mod validation; pub use hal::{api, MAX_BIND_GROUPS, MAX_COLOR_ATTACHMENTS, MAX_VERTEX_BUFFERS};