yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
d65530246
master
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target hlsl -entry computeMain -stage compute 2 3//TEST_INPUT:ubuffer(data=[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], stride=16):out 4RWStructuredBuffer<int> outputBuffer; 5 6// CHECK: error 20001 7// Previously this definition would lead to an infinite loop in parsing. 8int doThing<1>() { return 2; } 9 10[numthreads(4, 4, 1)] 11void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) 12{ 13 int index = dispatchThreadID.x; 14 15 outputBuffer[index] = index; 16}