// ---- Created with 3Dmigoto v1.3.16.41 on Fri Jan 08 20:01:51 2021

cbuffer _Globals : register(b0)
{
  float2 invPixelSize : packoffset(c0);
  float4 pixelSize : packoffset(c1);
  float4 upSamplingParameters : packoffset(c2);
  float tileCategory : packoffset(c3);
}



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


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

  r0.x = dot(v0.xx, invPixelSize.xx);
  o0.x = -1 + r0.x;
  r0.x = -v0.y * invPixelSize.y + 1;
  o0.y = r0.x * 2 + -1;
  o0.zw = float2(1,1);
  o1.xyzw = v1.xyzw;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v1.3.16.41 on Fri Jan 08 20:01:51 2021
//
//
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
//   float2 invPixelSize;               // Offset:    0 Size:     8
//   float4 pixelSize;                  // Offset:   16 Size:    16 [unused]
//   float4 upSamplingParameters;       // Offset:   32 Size:    16 [unused]
//   float tileCategory;                // Offset:   48 Size:     4 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// $Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 0   xy          0     NONE   float   xy
// TEXCOORD                 1   xyzw        1     NONE   float   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[1], immediateIndexed
dcl_input v0.xy
dcl_input v1.xyzw
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_temps 1
dp2 r0.x, v0.xxxx, cb0[0].xxxx
add o0.x, r0.x, l(-1.000000)
mad r0.x, -v0.y, cb0[0].y, l(1.000000)
mad o0.y, r0.x, l(2.000000), l(-1.000000)
mov o0.zw, l(0,0,1.000000,1.000000)
mov o1.xyzw, v1.xyzw
ret
// Approximately 7 instruction slots used

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