deadloop.hlsl 219 B

12345678910111213141516
  1. // RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s
  2. // CHECK: !"llvm.loop.unroll.disable"
  3. int i;
  4. float main(float2 a : A, int3 b : B) : SV_Target
  5. {
  6. float s = 0;
  7. while(i < b.x) {
  8. s += a.x;
  9. }
  10. return s;
  11. }