yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
366a947cd
master
1//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target glsl -DLINEAR_SLANG 2//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target spirv -DLINEAR_SLANG 3 4//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target glsl -DLINEAR_GLSL 5//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target spirv -DLINEAR_GLSL 6// CHECK: error 31211 7 8buffer MyBlockName 9{ 10 int result; 11} outputBuffer; 12 13#ifdef LINEAR_SLANG 14[DerivativeGroupLinear] 15[numthreads(1, 3, 1)] 16#endif 17 18#ifdef LINEAR_GLSL 19layout(derivative_group_linearNV) in; 20[numthreads(1, 3, 1)] 21#endif 22 23void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) 24{ 25 outputBuffer.result = asint(ddx(1)); 26}