hlsl.struct.split.trivial.vert 433 B

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