From b5d9974b9a3798ccae4fb9d6d4f4357381a8072a Mon Sep 17 00:00:00 2001 From: Jacob Hughes Date: Sat, 30 Sep 2023 17:53:44 -0400 Subject: [PATCH] subgroup: require GroupNonUnifomBallot capability --- src/back/spv/block.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/back/spv/block.rs b/src/back/spv/block.rs index 90de9ce127..54267dc6b2 100644 --- a/src/back/spv/block.rs +++ b/src/back/spv/block.rs @@ -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,