//shadow but not fix here
// ---- Created with 3Dmigoto v1.3.11 on Sun Jul 29 14:49:07 2018

cbuffer cb_g_HZB : register(b7)
{

  struct
  {
    float4 m_ZScaleBias;
    float4x4 m_ViewProjection;
    float4 m_Viewport;
    float4 m_MinMipLevel;
    float4 m_CascadeScale[4];
    float4 m_CascadeOffset[4];
    int4 m_CascadeCount;
    float4 m_HalfPixel;
  } g_HZB : packoffset(c0);

}

SamplerState s_g_SourceTexture_s : register(s0);
Texture2D<float4> t_g_SourceTexture : register(t0);


// 3Dmigoto declarations
#define cmp -
Texture1D<float4> IniParams : register(t120);
Texture2D<float4> StereoParams : register(t125);


void main(
  float4 v0 : SV_Position0,
  float2 v1 : TEXCOORD0,
  out float o0 : SV_Target0)
{
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.x = t_g_SourceTexture.Sample(s_g_SourceTexture_s, v1.xy).x;
  o0.x = r0.x * g_HZB.m_ZScaleBias.x + g_HZB.m_ZScaleBias.y;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
//   using 3Dmigoto v1.3.11 on Sun Jul 29 14:49:07 2018
//
//
// Buffer Definitions:
//
// cbuffer cb_g_HZB
// {
//
//   struct HZBConsts
//   {
//
//       float4 m_ZScaleBias;           // Offset:    0
//       float4x4 m_ViewProjection;     // Offset:   16
//       float4 m_Viewport;             // Offset:   80
//       float4 m_MinMipLevel;          // Offset:   96
//       float4 m_CascadeScale[4];      // Offset:  112
//       float4 m_CascadeOffset[4];     // Offset:  176
//       int4 m_CascadeCount;           // Offset:  240
//       float4 m_HalfPixel;            // Offset:  256
//
//   } g_HZB;                           // Offset:    0 Size:   272
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// s_g_SourceTexture                 sampler      NA          NA    0        1
// t_g_SourceTexture                 texture  float4          2d    0        1
// cb_g_HZB                          cbuffer      NA          NA    7        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float
// TEXCOORD                 0   xy          1     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   x           0   TARGET   float   x
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb7[1], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v1.xy
dcl_output o0.x
dcl_temps 1
sample_indexable(texture2d)(float,float,float,float) r0.x, v1.xyxx, t0.xyzw, s0
mad o0.x, r0.x, cb7[0].x, cb7[0].y
ret
// Approximately 3 instruction slots used

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 