1 2// Test trivial case for structure splitting: the IN and OUT structs have ONLY an interstage IO. 3// This should fall back to flattening, and not produce any empty structures. 4 5struct VS_INPUT 6{ 7 float4 Pos_in : SV_Position; 8}; 9 10struct VS_OUTPUT 11{ 12 float4 Pos : SV_Position; 13}; 14 15VS_OUTPUT main(VS_INPUT vsin, float4 Pos_loose : SV_Position) 16{ 17 VS_OUTPUT vsout; 18 19 vsout.Pos = vsin.Pos_in + Pos_loose; 20 21 return vsout; 22} 23