outputArray.hlsl 451 B

1234567891011121314151617181920212223242526
  1. // RUN: %dxc -E main -T vs_6_0 %s | FileCheck %s
  2. // CHECK: switch
  3. struct Vertex
  4. {
  5. float4 position : POSITION0;
  6. float4 color : COLOR0;
  7. float4 a[3] : A;
  8. };
  9. struct Interpolants
  10. {
  11. float4 position : SV_POSITION0;
  12. float4 color : COLOR0;
  13. float4 a[3] : A;
  14. };
  15. uint i;
  16. void main( Vertex In, int j : J, out Interpolants output )
  17. {
  18. output = In;
  19. output.a[1][i] = 3;
  20. output.a[0] = 4;
  21. }