diff options
Diffstat (limited to 'tests/reflection/ptr/ptr-struct.slang')
| -rw-r--r-- | tests/reflection/ptr/ptr-struct.slang | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/reflection/ptr/ptr-struct.slang b/tests/reflection/ptr/ptr-struct.slang new file mode 100644 index 000000000..ee11ca240 --- /dev/null +++ b/tests/reflection/ptr/ptr-struct.slang @@ -0,0 +1,27 @@ +//TEST(64-bit):REFLECTION:-stage compute -no-codegen -target host-callable -entry computeMain + +struct AnotherStruct +{ + float a; + int b; + Ptr<int> ptrC; +}; + +struct SomeStruct +{ + Ptr<int> ptrInt; + int* ptrInt2; + int anInt; + AnotherStruct another; + Ptr<AnotherStruct> anotherPtr; +}; + +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 |
