yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
9ec6b9168
master
1//DISABLE_TEST:SIMPLE(filecheck=HLSL): -target hlsl -stage compute -entry computeMain -zero-initialize 2//DISABLE_TEST:SIMPLE(filecheck=GLSL): -target glsl -stage compute -entry computeMain -zero-initialize 3 4RWStructuredBuffer<uint> outputBuffer; 5 6// GLSL-NOT: error 30623 7// HLSL-NOT: error 30623 8 9// GLSL-NOT: globalMem{{.*}} = 10// HLSL-NOT: globalMem{{.*}} = 11 12groupshared uint globalMem; 13 14[numthreads(1, 1, 1)] 15void computeMain(int3 dispatchThreadID: SV_DispatchThreadID) 16{ 17 outputBuffer[0] = globalMem; 18}