yum-mirror/slang

Making it easier to work with shaders

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

jsmall-nvidiaPointer layout support (#2930)1b01ff909

master
440 B18 linesraw
1//TEST(64-bit):REFLECTION:-stage compute -no-codegen -target host-callable -entry computeMain
2
3struct SomeStruct
4{    
5    Ptr<int> regularGlobal;
6    int* regularGlobal2;
7    int regularGlobal3;
8};
9
10RWStructuredBuffer<SomeStruct> inputBuffer;
11
12RWStructuredBuffer<int> outputBuffer;
13
14[numthreads(4, 1, 1)]
15void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
16{    
17    outputBuffer[dispatchThreadID.x] = int(dispatchThreadID.x);
18}