yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
6e570b589
master
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target hlsl -entry computeMain -stage compute 2 3import this_file_does_not_exist; 4 5import empty; 6 7 8//TEST_INPUT:ubuffer(data=[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], stride=16):out 9RWStructuredBuffer<int> outputBuffer; 10 11// CHECK-NOT: error 1: {{.*}} 'empty.slang' 12 13[numthreads(4, 4, 1)] 14void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) 15{ 16 int index = dispatchThreadID.x; 17 outputBuffer[index] = index; 18} 19