yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Tim FoleyRework command-line options handling for entry points and targets (#697)725985528

master
346 B14 linesraw
1// array-size-static-const.hlsl
2//TEST:COMPARE_HLSL: -profile cs_5_0
3
4// The bug in this case is that were have a (hidden)
5// cast from the `uint` constant to `int` to get
6// the size of the array, and this cast was tripping
7// up the constant-folding logic.
8
9static const uint n = 16;
10groupshared float b[n];
11
12[numthreads(1,1,1)]
13void main()
14{}