yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
725985528
master
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 ; 10groupsharedfloat b [ n ]; 11 12[ numthreads ( 1 , 1 , 1 )] 13void main () 14{}