diff options
Diffstat (limited to 'tests/rewriter')
| -rw-r--r-- | tests/rewriter/error0.hlsl | 5 | ||||
| -rw-r--r-- | tests/rewriter/gh-160.hlsl | 4 | ||||
| -rw-r--r-- | tests/rewriter/type-splitting.hlsl | 18 |
3 files changed, 16 insertions, 11 deletions
diff --git a/tests/rewriter/error0.hlsl b/tests/rewriter/error0.hlsl index e42dec23e..d3deb2953 100644 --- a/tests/rewriter/error0.hlsl +++ b/tests/rewriter/error0.hlsl @@ -1,4 +1,7 @@ -//TEST(smoke):COMPARE_HLSL: -no-checking -target dxbc-assembly -profile ps_4_0 -entry main +// Disbaled because Slang does semantic checks now, not the downstream compiler. + +//TEST_IGNORE_FILE +//TEST(smoke):COMPARE_HLSL: -profile ps_4_0 -entry main // We need to confirm that when there is an error in // the input code, we allow the downstream compiler diff --git a/tests/rewriter/gh-160.hlsl b/tests/rewriter/gh-160.hlsl index 46ef6a92c..b412a75a1 100644 --- a/tests/rewriter/gh-160.hlsl +++ b/tests/rewriter/gh-160.hlsl @@ -1,4 +1,6 @@ -//TEST:COMPARE_HLSL: -no-checking -target dxbc-assembly -profile ps_4_0 -entry main +// Disabled because Slang should give the error, not downstream compiler +//TEST_IGNORE_FILE +//TEST:COMPARE_HLSL: -profile ps_4_0 -entry main #ifdef __SLANG__ __import gh_160; diff --git a/tests/rewriter/type-splitting.hlsl b/tests/rewriter/type-splitting.hlsl index b3cad1ce0..0826cbf21 100644 --- a/tests/rewriter/type-splitting.hlsl +++ b/tests/rewriter/type-splitting.hlsl @@ -1,4 +1,4 @@ -//TEST:COMPARE_HLSL: -split-mixed-types -no-checking -target dxbc-assembly -profile ps_4_0 -entry main +//TEST:COMPARE_HLSL: -profile ps_4_0 -entry main // Confirm that the `-split-mixed-types` flag works. @@ -37,22 +37,22 @@ float4 main() : SV_Target // - Fields of resource type get hoisted out of variable declarations // -struct Foo +struct Foo_0 { - float2 u; + float2 u_0; }; -cbuffer C +cbuffer C_0 { - Foo foo; + Foo_0 foo_0; } -Texture2D SLANG_parameterGroup_C_foo_t; -SamplerState SLANG_parameterGroup_C_foo_s; +Texture2D C_foo_t_0; +SamplerState C_foo_s_0; -float4 main() : SV_Target +float4 main() : SV_TARGET { - return SLANG_parameterGroup_C_foo_t.Sample(SLANG_parameterGroup_C_foo_s, foo.u); + return C_foo_t_0.Sample(C_foo_s_0, foo_0.u_0); } #endif |
