diff options
Diffstat (limited to 'tests/reflection/ptr/ptr-self-reference.slang')
| -rw-r--r-- | tests/reflection/ptr/ptr-self-reference.slang | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/reflection/ptr/ptr-self-reference.slang b/tests/reflection/ptr/ptr-self-reference.slang new file mode 100644 index 000000000..437b7d61b --- /dev/null +++ b/tests/reflection/ptr/ptr-self-reference.slang @@ -0,0 +1,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); +}
\ No newline at end of file |
