blob: 437b7d61bbb98a69ee03c80e7a3e7924babfdb3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//TEST(64-bit):REFLECTION:-stage compute -no-codegen -target host-callable -entry computeMain
struct SomeStruct
{
int payload;
Ptr<SomeStruct> next;
};
RWStructuredBuffer<SomeStruct> inputBuffer;
RWStructuredBuffer<int> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
outputBuffer[dispatchThreadID.x] = int(dispatchThreadID.x);
}
|