Skip to content

Commit

Permalink
subgroup: require GroupNonUnifomBallot capability
Browse files Browse the repository at this point in the history
  • Loading branch information
exrook committed Sep 30, 2023
1 parent 98c426d commit 4f2a204
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/back/spv/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2329,6 +2329,10 @@ impl<'w> BlockContext<'w> {
self.write_ray_query_function(query, fun, &mut block);
}
crate::Statement::SubgroupBallot { result } => {
self.writer.require_any(
"GroupNonUniformBallot",
&[spirv::Capability::GroupNonUniformBallot],
)?;
let vec4_u32_type_id = self.get_type_id(LookupType::Local(LocalType::Value {
vector_size: Some(crate::VectorSize::Quad),
kind: crate::ScalarKind::Uint,
Expand Down

0 comments on commit 4f2a204

Please sign in to comment.