val-failures-ps.hlsl 385 B

1234567891011121314151617
  1. // RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s
  2. // CHECK: Interpolation mode for PS input position must be linear_noperspective_centroid or
  3. min16float min16float_val;
  4. struct PSResult {
  5. float4 color: SV_Target;
  6. float depth: SV_DepthGreaterEqual;
  7. };
  8. PSResult main(linear float4 p: SV_Position) {
  9. PSResult result;
  10. result.color = p;
  11. result.depth = 0.5f;
  12. return result;
  13. }