summaryrefslogtreecommitdiff
path: root/tests/diagnostics
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-05-02 20:29:38 -0700
committerGitHub <noreply@github.com>2023-05-02 20:29:38 -0700
commitd52376a65f37fcbbb67428b917fd3819436b6dfb (patch)
treeda25b3c9a00bd003b1970b4a6c4eb38eccf62aa1 /tests/diagnostics
parent55291b0bf6d729fcbaf75a01926da7da8975b8e9 (diff)
Various dxc/fxc compatibility fixes. (#2863)
* Various dxc/fxc compatibility fixes. * Cleanup. * Fix test cases. * Fix comments. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/diagnostics')
-rw-r--r--tests/diagnostics/packoffset.slang11
-rw-r--r--tests/diagnostics/packoffset.slang.expected8
-rw-r--r--tests/diagnostics/register-bindings.slang2
-rw-r--r--tests/diagnostics/register-bindings.slang.expected3
4 files changed, 0 insertions, 24 deletions
diff --git a/tests/diagnostics/packoffset.slang b/tests/diagnostics/packoffset.slang
deleted file mode 100644
index b5669c410..000000000
--- a/tests/diagnostics/packoffset.slang
+++ /dev/null
@@ -1,11 +0,0 @@
-// packoffset.slang
-//DIAGNOSTIC_TEST:SIMPLE:-target hlsl
-
-// use of `packoffset` (not supported):
-cbuffer B
-{
- float4 x : packoffset(c0);
-}
-
-void main()
-{} \ No newline at end of file
diff --git a/tests/diagnostics/packoffset.slang.expected b/tests/diagnostics/packoffset.slang.expected
deleted file mode 100644
index 701457fe7..000000000
--- a/tests/diagnostics/packoffset.slang.expected
+++ /dev/null
@@ -1,8 +0,0 @@
-result code = -1
-standard error = {
-tests/diagnostics/packoffset.slang(7): error 39012: explicit 'packoffset' bindings are not yet supported in Slang
- float4 x : packoffset(c0);
- ^~~~~~~~~~
-}
-standard output = {
-}
diff --git a/tests/diagnostics/register-bindings.slang b/tests/diagnostics/register-bindings.slang
index 263329bf6..5c78cb10b 100644
--- a/tests/diagnostics/register-bindings.slang
+++ b/tests/diagnostics/register-bindings.slang
@@ -15,8 +15,6 @@ SamplerState c : register(s0, s1);
// No space index given after `space`:
SamplerState d : register(s2, space);
-// use of a component mask (not supported):
-Texture2D e : register(t3.x);
void main()
{} \ No newline at end of file
diff --git a/tests/diagnostics/register-bindings.slang.expected b/tests/diagnostics/register-bindings.slang.expected
index e71f58b13..74e9917d3 100644
--- a/tests/diagnostics/register-bindings.slang.expected
+++ b/tests/diagnostics/register-bindings.slang.expected
@@ -12,9 +12,6 @@ SamplerState c : register(s0, s1);
tests/diagnostics/register-bindings.slang(16): error 39010: expected a register space index after 'space'
SamplerState d : register(s2, space);
^~~~~
-tests/diagnostics/register-bindings.slang(19): error 39011: explicit register component masks are not yet supported in Slang
-Texture2D e : register(t3.x);
- ^
}
standard output = {
}