semantic.depth.ps.hlsl 312 B

1234567891011
  1. // Run: %dxc -T ps_6_0 -E main
  2. // CHECK: OpEntryPoint Fragment %main "main" %in_var_A %gl_FragDepth
  3. // CHECK: OpDecorate %gl_FragDepth BuiltIn FragDepth
  4. // CHECK: %gl_FragDepth = OpVariable %_ptr_Output_float Output
  5. float main(float input: A) : SV_Depth {
  6. return input;
  7. }