diff options
Diffstat (limited to 'tests/rewriter')
| -rw-r--r-- | tests/rewriter/type-splitting.hlsl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/rewriter/type-splitting.hlsl b/tests/rewriter/type-splitting.hlsl index 0826cbf21..850e1b5ad 100644 --- a/tests/rewriter/type-splitting.hlsl +++ b/tests/rewriter/type-splitting.hlsl @@ -42,9 +42,14 @@ struct Foo_0 float2 u_0; }; +struct SLANG_ParameterGroup_C_0 +{ + Foo_0 foo_0; +}; + cbuffer C_0 { - Foo_0 foo_0; + SLANG_ParameterGroup_C_0 C_0; } Texture2D C_foo_t_0; @@ -52,7 +57,7 @@ SamplerState C_foo_s_0; float4 main() : SV_TARGET { - return C_foo_t_0.Sample(C_foo_s_0, foo_0.u_0); + return C_foo_t_0.Sample(C_foo_s_0, C_0.foo_0.u_0); } #endif |
