yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
74d4c8ab9
master
1//TEST:SIMPLE(filecheck=CHECK):-target spirv -emit-spirv-directly -O0 2//TEST:SIMPLE(filecheck=CHECK):-target spirv -emit-spirv-via-glsl -entry main -stage compute -O0 3 4RWStructuredBuffer<float> output; 5 6[numthreads(1,1,1)] 7[shader("compute")] 8void main() 9{ 10 output[0] = 0; 11 // CHECK: OpControlBarrier %uint_2 %uint_2 %uint_264 12 GroupMemoryBarrierWithGroupSync(); 13 output[1] = 0; 14}