Skip to content

Commit

Permalink
Pass subgroup capability to naga
Browse files Browse the repository at this point in the history
  • Loading branch information
exrook committed Oct 24, 2023
1 parent d80c229 commit 24926f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wgpu-core/src/device/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,10 @@ impl<A: HalApi> Device<A> {
.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 {
Expand Down

0 comments on commit 24926f2

Please sign in to comment.