Skip to content

Commit

Permalink
Add comment about u32 support of textureLoad on WSGL test file
Browse files Browse the repository at this point in the history
  • Loading branch information
ygdrasil-io committed Feb 16, 2025
1 parent 18944df commit eb51db5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions naga/tests/in/image.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ fn main(@builtin(local_invocation_id) local_id: vec3<u32>) {
let itc = vec2<i32>(dim * local_id.xy) % vec2<i32>(10, 20);
// loads with ivec2 coords.
let value1 = textureLoad(image_mipmapped_src, itc, i32(local_id.z));
// doing the same thing as the line above, but with u32, as textureLoad must also support unsigned integers.
let value1_2 = textureLoad(image_mipmapped_src, itc, u32(local_id.z));
let value2 = textureLoad(image_multisampled_src, itc, i32(local_id.z));
let value4 = textureLoad(image_storage_src, itc);
Expand Down

0 comments on commit eb51db5

Please sign in to comment.