yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
0476b57fa
master
1 2//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-vk -compute 3//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-vk -compute -profile sm_6_1 4//TEST:SIMPLE(filecheck=CHECK): -target hlsl -entry computeMain -stage compute 5//TEST:SIMPLE(filecheck=CHECK): -target hlsl -entry computeMain -stage compute -capability sm_6_1 6//TEST:SIMPLE(filecheck=CHECK): -target hlsl -entry computeMain -stage compute -profile sm_6_1 7//TEST:SIMPLE(filecheck=CHECK_WARN): -target hlsl -entry computeMain -stage compute -capability sm_4_0 8 9//CHECK-NOT: warning 41012 10//CHECK_WARN: warning 41012 11//CHECK: computeMain 12 13//TEST_INPUT:ubuffer(data=[1], stride=4):out,name outputBuffer 14RWStructuredBuffer<uint> outputBuffer; 15 16[numthreads(1, 1, 1)] 17void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) 18{ 19 // BUF: 1 20 outputBuffer[0] = WaveActiveSum(1); 21}