summaryrefslogtreecommitdiffstats
path: root/tests/bugs/split-nested-types.hlsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/split-nested-types.hlsl')
-rw-r--r--tests/bugs/split-nested-types.hlsl17
1 files changed, 15 insertions, 2 deletions
diff --git a/tests/bugs/split-nested-types.hlsl b/tests/bugs/split-nested-types.hlsl
index 0a8a8f9ff..8216a4e36 100644
--- a/tests/bugs/split-nested-types.hlsl
+++ b/tests/bugs/split-nested-types.hlsl
@@ -4,11 +4,24 @@
import split_nested_types;
#else
+#define A _ST01A
+#define x _SV01A1x
+
+#define B _ST01B
+#define y _SV01B1y
+
+#define M _ST01M
+#define a _SV01M1a
+#define b _SV01M1b
+
+#define C _SV022SLANG_parameterGroup_CL0
+#define m _SV022SLANG_ParameterGroup_C1m
+
struct A { int x; };
struct B { float y; };
-struct C { Texture2D t; SamplerState s; };
+struct CC { Texture2D t; SamplerState s; };
struct M
{
@@ -23,7 +36,7 @@ cbuffer C
M m;
}
-float4 main() : SV_target
+float4 main() : SV_TARGET
{
return m.b.y;
}