summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2025-08-08 20:15:25 +0800
committerGitHub <noreply@github.com>2025-08-08 12:15:25 +0000
commit5d1ba37be64980d80e5106f8664a654d907ebaf4 (patch)
tree039933a1e1a902478b3902f6c350745590ca2a80 /tests
parentc7c4816146bb9ec055e9a8f8c3f975624f2fdb07 (diff)
Diagnose on array of parameterblock instead of asserting (#8123)
Closes https://github.com/shader-slang/slang/issues/5750
Diffstat (limited to 'tests')
-rw-r--r--tests/diagnostics/array-parameterblock.slang10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/diagnostics/array-parameterblock.slang b/tests/diagnostics/array-parameterblock.slang
new file mode 100644
index 000000000..566694e37
--- /dev/null
+++ b/tests/diagnostics/array-parameterblock.slang
@@ -0,0 +1,10 @@
+//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
+
+[numthreads(4, 1, 1)]
+void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
+{
+}
+
+//CHECK: ([[# @LINE+1]]): error 30027
+uniform ParameterBlock<float> qs[2];
+