//mouse cursor
// ---- Created with 3Dmigoto v1.3.2 on Sun Feb 21 00:20:07 2021
cbuffer cb2 : register(b2)
{
  float4 cb2[4];
}

cbuffer cb1 : register(b1)
{
  float4 cb1[7];
}

cbuffer cb0 : register(b0)
{
  float4 cb0[4];
}




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


void main(
  float4 v0 : POSITION0,
  float2 v1 : TEXCOORD0,
  out float4 o0 : COLOR0,
  out float2 o1 : TEXCOORD0,
  out float4 o2 : SV_Position0)
{
  float4 r0,r1;
  uint4 bitmask, uiDest;
  float4 fDest;

  o0.xyzw = cb2[0].xyzw;
  r0.xyzw = cb2[2].xyzw * v1.xxyy;
  r0.xy = r0.xy + r0.zw;
  o1.xy = cb2[3].xy + r0.xy;
  r0.xyz = cb1[6].xyz * v0.xyz;
  r0.w = dot(r0.xyz, cb1[1].xyz);
  r0.w = cb1[1].w + r0.w;
  r1.xyzw = cb0[1].xyzw * r0.wwww;
  r0.w = dot(r0.xyz, cb1[0].xyz);
  r0.x = dot(r0.xyz, cb1[2].xyz);
  r0.x = cb1[2].w + r0.x;
  r0.y = cb1[0].w + r0.w;
  r1.xyzw = r0.yyyy * cb0[0].xyzw + r1.xyzw;
  r0.xyzw = r0.xxxx * cb0[2].xyzw + r1.xyzw;
  o2.xyzw = cb0[3].xyzw + r0.xyzw;

float4 iniParams = IniParams.Load(0);
float depth = StereoParams.Load(0).x; 
float convergence = StereoParams.Load(0).y; 
if(o2.w == 1){o2.x += depth.x * iniParams.x;}
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.2 on Sun Feb 21 00:20:07 2021
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyz
// TEXCOORD                 0   xy          1     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// COLOR                    0   xyzw        0     NONE   float   xyzw
// TEXCOORD                 0   xy          1     NONE   float   xy
// SV_Position              0   xyzw        2      POS   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[4], immediateIndexed
dcl_constantbuffer cb1[7], immediateIndexed
dcl_constantbuffer cb2[4], immediateIndexed
dcl_input v0.xyz
dcl_input v1.xy
dcl_output o0.xyzw
dcl_output o1.xy
dcl_output_siv o2.xyzw, position
dcl_temps 2
mov o0.xyzw, cb2[0].xyzw
mul r0.xyzw, v1.xxyy, cb2[2].xyzw
add r0.xy, r0.zwzz, r0.xyxx
add o1.xy, r0.xyxx, cb2[3].xyxx
mul r0.xyz, v0.xyzx, cb1[6].xyzx
dp3 r0.w, r0.xyzx, cb1[1].xyzx
add r0.w, r0.w, cb1[1].w
mul r1.xyzw, r0.wwww, cb0[1].xyzw
dp3 r0.w, r0.xyzx, cb1[0].xyzx
dp3 r0.x, r0.xyzx, cb1[2].xyzx
add r0.x, r0.x, cb1[2].w
add r0.y, r0.w, cb1[0].w
mad r1.xyzw, r0.yyyy, cb0[0].xyzw, r1.xyzw
mad r0.xyzw, r0.xxxx, cb0[2].xyzw, r1.xyzw
add o2.xyzw, r0.xyzw, cb0[3].xyzw
ret
// Approximately 0 instruction slots used

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