//HUD VS 4. Main menu background. Videos.
// ---- Created with geo-11 v0.6.193 on Sat May 25 11:02:12 2024

cbuffer _Globals : register(b0)
{
  float4 coord_xy : packoffset(c5);
  float4 constuv[3] : packoffset(c6);
}



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


void main(
  float2 v0 : POSITION0,
  out float4 o0 : SV_Position0,
  out float4 o1 : TEXCOORD0)
{
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;
  
  float4 stereo = StereoParams.Load(0);
  float4 iniparams3 = IniParams.Load(int2(3,0));
  float4 iniparams10 = IniParams.Load(int2(10,0));
  
  o0.xy = v0.xy * coord_xy.xy + coord_xy.zw;
  o0.zw = float2(0,1);
  r0.xyzw = constuv[1].xyzw * v0.yyyy;
  r0.xyzw = v0.xxxx * constuv[0].xyzw + r0.xyzw;
  o1.xyzw = constuv[2].xyzw + r0.xyzw;
  
  //o0.x+=stereo.x;
  o0.x+=stereo.x*(o0.w-stereo.y*iniparams3.y/37234.0425532);
  
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.0.10011.16384
//
//   using 3Dmigoto v0.6.193 on Sat May 25 11:02:12 2024
//
//
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
//   float4 coord_xy;                   // Offset:   80 Size:    16
//   float4 constuv[3];                 // Offset:   96 Size:    48
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// $Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xy          0     NONE   float   xy
//
//
// 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[9], immediateIndexed
dcl_input v0.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_temps 1
mad o0.xy, v0.xyxx, cb0[5].xyxx, cb0[5].zwzz
mov o0.zw, l(0,0,0,1.000000)
mul r0.xyzw, v0.yyyy, cb0[7].xyzw
mad r0.xyzw, v0.xxxx, cb0[6].xyzw, r0.xyzw
add o1.xyzw, r0.xyzw, cb0[8].xyzw
ret
// Approximately 6 instruction slots used

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