yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
c55805e9c
master
1//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-vk -output-using-type 2//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-d3d11 -output-using-type 3 4//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer 5RWStructuredBuffer<uint> outputBuffer; 6 7in uint3 gid : SV_GroupID; 8 9[numthreads(1,1,1)] 10void computeMain() 11{ 12 uint expr = WorkgroupSize().x + gid.x; 13 // CHECK: type: uint32_t 14 // CHECK: 2 15 outputBuffer[0] = expr + 1; 16}