val-failures.hlsl 455 B

123456789101112131415
  1. // RUN: %dxc -E main -T vs_6_0 %s | FileCheck %s
  2. // CHECK: RasterizerOrdered objects are only allowed in 5.0+ pixel shaders
  3. RasterizerOrderedBuffer<float4> r;
  4. min16float min16float_val;
  5. float4 main(float4 p: Position) : SV_Position {
  6. // TODO: enable a C H E C K: Instructions marked precise may not refer to minprecision values
  7. precise min16float min16float_local = min16float_val;
  8. if (min16float_local != 0) {
  9. return 1;
  10. }
  11. return r[0];
  12. }