From 378e8fed761f4e53b0125ac87f0ea51298ff76d6 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Thu, 30 Nov 2023 15:53:56 +0100 Subject: [PATCH 1/2] Expose shader validation --- 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 944d7eff46..b85f87782c 100644 --- a/wgpu-core/src/lib.rs +++ b/wgpu-core/src/lib.rs @@ -67,7 +67,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-hal` 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}; From b19ddb4715631516b0e82ff4f894b4694c265b80 Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Wed, 6 Dec 2023 15:43:37 -0500 Subject: [PATCH 2/2] Update wgpu-core/src/lib.rs --- wgpu-core/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/lib.rs b/wgpu-core/src/lib.rs index b85f87782c..e6c5415b58 100644 --- a/wgpu-core/src/lib.rs +++ b/wgpu-core/src/lib.rs @@ -68,7 +68,7 @@ pub mod resource; pub mod storage; mod track; // This is public for users who pre-compile shaders while still wanting to -// preserve all run-time checks that `wgpu-hal` does. +// preserve all run-time checks that `wgpu-core` does. // See , after which this can be // made private again. pub mod validation;