From 24926f2d5d49d904e7777996059648ec894a1548 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 fd85fd6a775..a521f3d030b 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 debug_source = if self.instance_flags.contains(wgt::InstanceFlags::DEBUG) { Some(hal::DebugSource {