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=CHECK): -target hlsl -stage compute -entry computeMain 2//DISABLE_TEST:SIMPLE(filecheck=CHECK): -target glsl -stage compute -entry computeMain 3 4// CHECK-NOT: {{.* }}= 0; 5// CHECK-NOT: return 0; 6 7RWStructuredBuffer<int> outputBuffer; 8 9[noinline] 10int returnInt() 11{ 12 int myInt; 13 return myInt; 14} 15 16[numthreads(1, 1, 1)] 17void computeMain(int3 dispatchThreadID: SV_DispatchThreadID) 18{ 19// BUF: 1 20 outputBuffer[0] = true 21 && returnInt() == 0 22 ; 23}