summaryrefslogtreecommitdiffstats
path: root/tests/reflection/actual-global.slang
blob: 806b75f2f2d1257e689e8d0c04ac23c69a75bb68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//TEST(64-bit):REFLECTION:-stage compute  -no-codegen -target host-callable -entry computeMain

__global int actualGlobal;
int regularGlobal;

RWStructuredBuffer<int> outputBuffer;

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