diff options
Diffstat (limited to 'tests/bugs/vec-init-list.hlsl')
| -rw-r--r-- | tests/bugs/vec-init-list.hlsl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs/vec-init-list.hlsl b/tests/bugs/vec-init-list.hlsl new file mode 100644 index 000000000..be1bc5c6f --- /dev/null +++ b/tests/bugs/vec-init-list.hlsl @@ -0,0 +1,19 @@ +//TEST:COMPARE_HLSL: -profile vs_5_0 -target dxbc-assembly + +// Check handling of initializer list for vector + +cbuffer C : register(b0) +{ + float4 a; +}; + +float w0(float x) { return x; } +float w1(float x) { return x; } +float w2(float x) { return x; } +float w3(float x) { return x; } + +float4 main() : SV_Position +{ + float4 wx = { w0(a.x), w1(a.x), w2(a.x), w3(a.x), }; + return wx; +} |
