yum-mirror/slang

Making it easier to work with shaders

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

jsmall-nvidiaYet more improvements/fixes to cpu-target.md (#2330)798db8d2b

master
364 B12 linesraw
1//TEST(64-bit):REFLECTION:-stage compute  -no-codegen -target host-callable -entry computeMain
2
3__global int actualGlobal;
4int regularGlobal;
5
6RWStructuredBuffer<int> outputBuffer;
7
8[numthreads(4, 1, 1)]
9void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
10{    
11    outputBuffer[dispatchThreadID.x] = dispatchThreadID.x + actualGlobal + regularGlobal;
12}