static_method.hlsl 252 B

12345678910111213
  1. // RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s
  2. // CHECK: @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 0, float 1.000000e+00)
  3. struct Helper
  4. {
  5. static float GetValue() { return 1; }
  6. };
  7. float main() : SV_Target
  8. {
  9. return Helper::GetValue();
  10. }