yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
7f1df9d0b
master
1 2//TEST:COMPARE_COMPUTE(filecheck-buffer=CHECK):-vk -output-using-type 3//TEST:COMPARE_COMPUTE(filecheck-buffer=CHECK):-cpu -output-using-type 4 5//TEST_INPUT: set outputBuffer = out ubuffer(data=[0 0 0 0], stride=4) 6RWStructuredBuffer<uint> outputBuffer; 7 8[numthreads(1,1,1)] 9void computeMain() 10{ 11 int c = 1; 12 let lambda = (int x, int y) => x + y + c; 13 let result = lambda(3, 4); 14 outputBuffer[0] = result; // Expecting outputBuffer[0] to be 8 15 // CHECK: 8 16}