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 23, 2023
1 parent 2f9008f commit 1679e5f
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 info = naga::valid::Validator::new(naga::valid::ValidationFlags::all(), caps)
.validate(&module)
Expand Down

0 comments on commit 1679e5f

Please sign in to comment.