Skip to content

Commit

Permalink
Fix intra-invocation coherence 3d tests (#3521)
Browse files Browse the repository at this point in the history
* Coordinates for 3D textures currently use 1 for the z component
  instead of 0, but the texutre is always created with a depth of 1 so
  this is out of bounds
  • Loading branch information
alan-baker authored Mar 18, 2024
1 parent addbf81 commit 2efb073
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn indexToCoord(idx : u32) -> vec2u {
case '3d': {
return `
fn indexToCoord(idx : u32) -> vec3u {
return vec3u(idx % (wgx * num_wgs_x), idx / (wgx * num_wgs_x), 1);
return vec3u(idx % (wgx * num_wgs_x), idx / (wgx * num_wgs_x), 0);
}`;
}
default: {
Expand Down

0 comments on commit 2efb073

Please sign in to comment.