summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulius Ikkala <julius.ikkala@gmail.com>2025-10-16 13:42:57 +0300
committerGitHub <noreply@github.com>2025-10-16 10:42:57 +0000
commit7e35123bae1cd3b032fdffcafd600aa78394bf2d (patch)
treeb25b0ff2651a1518d029329503609aedceca2a6d /tests
parent01510f2c922af8629c7a730ef92a31fa83bd9f49 (diff)
Fix WGSL bitshift test typo (#8720)
Random drive-by test fix, this was reading past the end of the buffer but usually succeeded because the expected result is 0.
Diffstat (limited to 'tests')
-rw-r--r--tests/wgsl/bitshifts.slang2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/wgsl/bitshifts.slang b/tests/wgsl/bitshifts.slang
index 50d2fc43d..1ca01de6a 100644
--- a/tests/wgsl/bitshifts.slang
+++ b/tests/wgsl/bitshifts.slang
@@ -84,7 +84,7 @@ void computeMain()
outputBuffer[41] = v3[1];
outputBuffer[42] = v3[2];
- v4 = int4(inputBuffer[0], inputBuffer[1], inputBuffer[2], inputBuffer[4]) >> int4(1, 2, 3, 4);
+ v4 = int4(inputBuffer[0], inputBuffer[1], inputBuffer[2], inputBuffer[3]) >> int4(1, 2, 3, 4);
outputBuffer[43] = v4[0];
outputBuffer[44] = v4[1];
outputBuffer[45] = v4[2];