4 struct mystruct { float2 a; };
6 { 1, 2, }, // test trailing commas in list
14 // { { 5, 6, } }, // TODO: test unneeded levels
17 float test4 = { 7, } ; // test scalar initialization
19 struct mystruct2 { float a; float b; float c; };
20 mystruct2 test5 = { {8,}, {9,}, {10}, };
21 const mystruct2 constTest5 = { {8,}, {9,}, {10}, };
24 float const origStep = 1.0f;
25 const float step = origStep;
28 normalize(float3(1, 1, 1)) * (n += step),
29 normalize(float3(-1, -1, -1)) * (n += step),
30 normalize(float3(-1, -1, 1)) * (n += step),
31 normalize(float3(-1, 1, -1)) * (n += step),
32 normalize(float3(-1, 1, 1)) * (n += step),
33 normalize(float3(1, -1, -1)) * (n += step),
34 normalize(float3(1, -1, 1)) * (n += step),
35 normalize(float3(1, 1, -1)) * (n += step) };
37 const struct one { float3 a; } oneNonConst = { normalize(float3(-1, 1, 1)) * (n += step) };
38 const struct two { float3 a;
39 float3 b; } twoNonConst = { normalize(float3(-1, 1, 1)) * (n += step),
40 normalize(float3(-1, 1, 1)) * (n += step) };
43 struct PS_OUTPUT { float4 color : SV_Target0; };
50 ps_output.color = 1.0;