//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   sampler2D APlaneSampler;
//   sampler2D YPlaneSampler;
//   row_major float4x4 YUVtoRGB;
//   sampler2D cBPlaneSampler;
//   sampler2D cRPlaneSampler;
//
//
// Registers:
//
//   Name           Reg   Size
//   -------------- ----- ----
//   YUVtoRGB       c64      4
//   YPlaneSampler  s0       1
//   cRPlaneSampler s1       1
//   cBPlaneSampler s2       1
//   APlaneSampler  s3       1
//

    ps_3_0
    def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.0902102052e-42 // 778
    def c127, 0.9999999, 1, 0, 0 // LogDepth constants
    dcl_texcoord v0.xy
    dcl_texcoord9 v9
    dcl_2d s0
    dcl_2d s1
    dcl_2d s2
    dcl_2d s3
    texld r0, v0, s0
    texld r1, v0, s1
    mov r0.y, r1.x
    texld r1, v0, s2
    mov r0.z, r1.x
    mov r0.w, c67.x
    dp4 oC0.x, c64, r0
    dp4 oC0.y, c65, r0
    dp4 oC0.z, c66, r0
    texld r0, v0, s3
    mul oC0.w, r0.x, c67.w
    // ----------------------------------------------------------------- Linear2Log -----------------------------------------------------------------
    if_ne v9.y, c127.y
      rcp r20.z, c128.x
      mul r20.x, v9.w, r20.z
      mul r20.y, c128.y, r20.z
      log r20.x, r20.x
      log r20.y, r20.y
      rcp r20.y, r20.y
    else
      mov r20.x, v9.z
      rcp r20.y, v9.w
    endif
    mul oDepth, r20.x, r20.y
    // ----------------------------------------------------------------------------------------------------------------------------------------------

// approximately 11 instruction slots used (4 texture, 7 arithmetic)
