summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-09-05 22:37:34 -0700
committerGitHub <noreply@github.com>2025-09-05 22:37:34 -0700
commitbc6b82666fa4deda932c36cea93ee2059e0992b2 (patch)
tree6800fcd6839db782af056310653d35391b558c1e /tests/diagnostics
parentfe87a39e453b64e94446181a9ae5cbfc0f62bf0c (diff)
Relax restriction on using link-time types for shader parameters. (#8387)
This change relaxes a previous restriction on link-time types and constants, so that we now allow them to be used to define shader parameters. Doing so will result in a parameter layout that is incomplete prior to linking. The PR added a test to call the reflection API on a fully linked program and ensure that we can report correct binding info.
Diffstat (limited to 'tests/diagnostics')
-rw-r--r--tests/diagnostics/incomplete-type.slang11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/diagnostics/incomplete-type.slang b/tests/diagnostics/incomplete-type.slang
deleted file mode 100644
index 873673045..000000000
--- a/tests/diagnostics/incomplete-type.slang
+++ /dev/null
@@ -1,11 +0,0 @@
-//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
-
-extern struct ExtType;
-
-struct MyType
-{
- ExtType arr[2];
-}
-
-// CHECK: ([[#@LINE+1]]): error 31204
-ConstantBuffer<MyType> buffer;