yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
712ce653d
master
1//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -shaderobj -output-using-type 2//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -vk -shaderobj -output-using-type 3 4module main; 5 6__include c; 7__include c; // Duplicate include, OK. 8__include b; 9 10 11//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer 12RWStructuredBuffer<int> outputBuffer; 13 14[numthreads(4, 1, 1)] 15void computeMain(int3 dispatchThreadID: SV_DispatchThreadID) 16{ 17 int tid = dispatchThreadID.x; 18 outputBuffer[tid] = f_c(); 19 // CHECK: 4 20}