summaryrefslogtreecommitdiff
path: root/tests/cuda/cuda-reflection.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cuda/cuda-reflection.slang')
-rw-r--r--tests/cuda/cuda-reflection.slang28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/cuda/cuda-reflection.slang b/tests/cuda/cuda-reflection.slang
new file mode 100644
index 000000000..95bf591c9
--- /dev/null
+++ b/tests/cuda/cuda-reflection.slang
@@ -0,0 +1,28 @@
+// cuda-reflection.slang
+
+//TEST:REFLECTION:-stage compute -entry main -target cuda
+
+struct PadLadenStruct
+{
+ double a;
+ uint8_t b;
+};
+
+// This is to check if the last half can be inserted 'inside' the spare padding of a. It should not be
+struct StructWithArray
+{
+ PadLadenStruct a[1];
+ uint8_t c;
+
+ matrix<half, 3, 3> d;
+ uint8_t e;
+};
+
+ConstantBuffer<StructWithArray> cb;
+RWStructuredBuffer<StructWithArray> sb;
+
+[numthreads(1, 1, 1)]
+void main(
+ uint3 dispatchThreadID : SV_DispatchThreadID)
+{
+} \ No newline at end of file