yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
3ca27faa2
master
1//TEST:SIMPLE(filecheck=CHECK): -stage compute -entry computeMain -target spirv 2 3//CHECK: error 30623 4 5interface Bug 6{ 7 static const int badVar = 0; 8} 9 10RWStructuredBuffer<int> b; 11[numthreads(1, 1, 1)] 12void computeMain(uint3 dispatchThreadID: SV_DispatchThreadID) 13{ 14 b[0] = Bug::badVar; 15}