const_init.hlsl 203 B

1234567891011
  1. // RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s
  2. // Make sure default val for cbuffer element is ignored.
  3. // CHECK: fadd
  4. float c = 0.91;
  5. float main() : SV_Target {
  6. const float x = 1+c;
  7. return x;
  8. }