summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-01-17 14:37:27 -0800
committerGitHub <noreply@github.com>2025-01-17 14:37:27 -0800
commitfc77070fdc9bfa599e8d66b21743778de3011e53 (patch)
treea9a0983bd704b0e760ae94d5330a74bc72f1154f /tests/diagnostics
parent3ff257816fc8f376d9bee76378a690757f8b5377 (diff)
Refactor _Texture to constrain on texel types. (#6115)
* Refactor _Texture to constrain on texel types. * Fix tests. * Fix. * Disable glsl texture test because rhi can't run it correctly.
Diffstat (limited to 'tests/diagnostics')
-rw-r--r--tests/diagnostics/illegal-texel-type.slang7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/diagnostics/illegal-texel-type.slang b/tests/diagnostics/illegal-texel-type.slang
new file mode 100644
index 000000000..847f9ea18
--- /dev/null
+++ b/tests/diagnostics/illegal-texel-type.slang
@@ -0,0 +1,7 @@
+//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target spirv
+
+// CHECK: ([[# @LINE+1]]): error 38029
+Texture2D<float4x4> t1;
+
+// CHECK: ([[# @LINE+1]]): error 38029
+RWBuffer<Sampler1D> t2; \ No newline at end of file