readFromOutput2.hlsl 301 B

1234567891011121314151617181920
  1. // RUN: %dxc -E main -T vs_6_0 %s | FileCheck %s
  2. // CHECK: fadd
  3. float c0;
  4. float c1;
  5. struct VsIn {
  6. float4 a:A;
  7. float4 b:B;
  8. };
  9. struct VsOut {
  10. float4 pos: SV_Position;
  11. float4 c: C;
  12. };
  13. void main(VsIn input, out VsOut output) {
  14. output.pos = input.a;
  15. output.c = input.b + output.pos;
  16. }