From a82e310e12d214776950442862f39ec455ee6651 Mon Sep 17 00:00:00 2001 From: Jacob Hughes Date: Sun, 22 Oct 2023 16:09:23 -0700 Subject: [PATCH] Pass subgroup capability to naga --- wgpu-core/src/device/resource.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wgpu-core/src/device/resource.rs b/wgpu-core/src/device/resource.rs index 560f9890d4e..fddadb0a59b 100644 --- a/wgpu-core/src/device/resource.rs +++ b/wgpu-core/src/device/resource.rs @@ -1316,6 +1316,10 @@ impl Device { .flags .contains(wgt::DownlevelFlags::CUBE_ARRAY_TEXTURES), ); + caps.set( + Caps::SUBGROUP, + self.features.contains(wgt::Features::SUBGROUP_OPERATIONS), + ); let info = naga::valid::Validator::new(naga::valid::ValidationFlags::all(), caps) .validate(&module)