yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Yong HeMisc parser improvements. (#8563)5793b6d86

master
300 B11 linesraw
1//TEST:COMPARE_COMPUTE(filecheck-buffer=CHECK): -output-using-type
2
3//TEST_INPUT: set outputBuffer = out ubuffer(data=[0], stride=4)
4RWStructuredBuffer<int> outputBuffer;
5
6[numthreads(1,1,1)]
7func computeMain(tid : int : SV_DispatchThreadID) -> void
8{
9    // CHECK: 1
10    outputBuffer[0] = tid + 1;
11}