summaryrefslogtreecommitdiffstats
path: root/tests/reflection/ptr/ptr-global.slang
blob: 98ddd7e450bc6810106c7c991410504a554725bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//TEST(64-bit):REFLECTION:-stage compute -no-codegen -target host-callable -entry computeMain

struct SomeStruct
{    
    Ptr<int> regularGlobal;
    int* regularGlobal2;
    int regularGlobal3;
};

RWStructuredBuffer<SomeStruct> inputBuffer;

RWStructuredBuffer<int> outputBuffer;

[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{    
    outputBuffer[dispatchThreadID.x] = int(dispatchThreadID.x);
}