yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
467fa3a5d
master
1//TEST:SIMPLE:-target dxil -entry computeMain -profile cs_6_2 -line-directive-mode source-map -o tests/feature/source-map/emit-source-map.zip 2 3RWStructuredBuffer<int> outputBuffer; 4 5int doThing(int a) 6{ 7 return a + a - 1; 8} 9 10[numthreads(4, 4, 1)] 11void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) 12{ 13 int x = (int)dispatchThreadID.x; 14 15 outputBuffer[x] = doThing(x); 16}