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 22, 2023
1 parent 851e5c0 commit a82e310
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 a82e310

Please sign in to comment.