summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-05-03 21:56:39 -0700
committerGitHub <noreply@github.com>2024-05-03 21:56:39 -0700
commit7db3986e01ce36e4c4ba87e1a83f122c5361c4aa (patch)
treec12fb742b76f36c8d092d266c6d696deca5105f9 /source
parent59903ef7e4ddd8885f71567bf0fc85527a88fffc (diff)
Fix mistake in WaveMatch intrinsic. (#4105)
Diffstat (limited to 'source')
-rw-r--r--source/slang/hlsl.meta.slang2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang
index c96be49e1..ca1fb0af3 100644
--- a/source/slang/hlsl.meta.slang
+++ b/source/slang/hlsl.meta.slang
@@ -12405,7 +12405,7 @@ uint4 WaveMatch(matrix<T,N,M> value)
uint4 result = uint4(0xFFFFFFFF);
[ForceUnroll]
for (int i = 0; i < N; i++)
- result &= WaveMatch(value[0]);
+ result &= WaveMatch(value[i]);
return result;
default:
return WaveMaskMatch(WaveGetActiveMask(), value);