yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
38ed03a72
master
1//TEST:SIMPLE(filecheck=CHECK): -target hlsl -profile cs_5_0 -entry computeMain -line-directive-mode none 2 3// Test that we can DCE load of a rw buffer. 4 5RWStructuredBuffer<float> gOutputBuffer; 6 7float test() 8{ 9 return gOutputBuffer[0]; 10} 11 12[numthreads(1, 1, 1)] 13void computeMain(uint3 dispatchThreadID: SV_DispatchThreadID) 14{ 15 test(); 16} 17 18// CHECK: void computeMain 19// CHECK-NOT: test 20// CHECK: } 21