pixelCounterNoSvPosition.hlsl 509 B

1234567891011121314
  1. // RUN: %dxc -Emain -Tps_6_0 %s | %opt -S -hlsl-dxil-add-pixel-hit-instrmentation,rt-width=16,num-pixels=64 | %FileCheck %s
  2. // Check the read from SV_Position was added:
  3. // CHECK: %XPos = call float @dx.op.loadInput.f32(i32 4, i32 0, i32 0, i8 0, i32 undef)
  4. // CHECK: %YPos = call float @dx.op.loadInput.f32(i32 4, i32 0, i32 0, i8 1, i32 undef)
  5. // Check the SV_Position meta-data was added:
  6. // CHECK: !{i32 0, !"SV_Position", i8 9, i8 3,
  7. float4 main() : SV_Target{
  8. discard;
  9. return float4(0,0,0,0);
  10. }