Skip to content

Commit

Permalink
work around metal issue in test as well
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy committed May 24, 2024
1 parent 5874e77 commit b57350e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/tests/dispatch_workgroups_indirect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ async fn run_test(
) -> [u32; 3] {
const SHADER_SRC: &str = "
@group(0) @binding(0)
var<storage, read_write> out: vec3<u32>;
var<storage, read_write> out: array<u32, 3>;
@compute @workgroup_size(1)
fn main(@builtin(num_workgroups) num_workgroups: vec3<u32>, @builtin(workgroup_id) workgroup_id: vec3<u32>) {
if (all(workgroup_id == vec3<u32>())) {
out = num_workgroups;
out[0] = num_workgroups.x;
out[1] = num_workgroups.y;
out[2] = num_workgroups.z;
}
}
";
Expand Down

0 comments on commit b57350e

Please sign in to comment.