// ---- Created with 3Dmigoto v1.3.1 on Tue Jun 05 19:41:04 2018

cbuffer uirenderer_VSConstants : register(b6)
{
  float4 m_viewportScale : packoffset(c0);
  float2 m_vsTime : packoffset(c1);
}



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


void main(
  float2 v0 : POSITION0,
  float2 v1 : TEXCOORD0,
  float4 v2 : COLOR0,
  float4 v3 : COLOR1,
  out float2 o0 : TEXCOORD0,
  out float4 o1 : COLOR0,
  out float4 o2 : COLOR1,
  out float4 o3 : SV_POSITION0)
{
  o0.xy = v1.xy;
  o1.xyzw = v2.xyzw;
  o2.xyzw = v3.xyzw;
  o3.xy = v0.xy * m_viewportScale.zw + m_viewportScale.xy;
  o3.zw = float2(0.5,1);
float4 params = IniParams.Load(0);
float4 stereo = StereoParams.Load(0);
o3.x = o3.x + stereo.x * params.x;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20546
//
//   using 3Dmigoto v1.3.1 on Tue Jun 05 19:41:04 2018
//
//
// Buffer Definitions:
//
// cbuffer uirenderer_VSConstants
// {
//
//   float4 m_viewportScale;            // Offset:    0 Size:    16
//   float2 m_vsTime;                   // Offset:   16 Size:     8 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// uirenderer_VSConstants            cbuffer      NA          NA    6        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xy          0     NONE   float   xy
// TEXCOORD                 0   xy          1     NONE   float   xy
// COLOR                    0   xyzw        2     NONE   float   xyzw
// COLOR                    1   xyzw        3     NONE   float   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 0   xy          0     NONE   float   xy
// COLOR                    0   xyzw        1     NONE   float   xyzw
// COLOR                    1   xyzw        2     NONE   float   xyzw
// SV_POSITION              0   xyzw        3      POS   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb6[1], immediateIndexed
dcl_input v0.xy
dcl_input v1.xy
dcl_input v2.xyzw
dcl_input v3.xyzw
dcl_output o0.xy
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output_siv o3.xyzw, position
mov o0.xy, v1.xyxx
mov o1.xyzw, v2.xyzw
mov o2.xyzw, v3.xyzw
mad o3.xy, v0.xyxx, cb6[0].zwzz, cb6[0].xyxx
mov o3.zw, l(0,0,0.500000,1.000000)
ret
// Approximately 6 instruction slots used

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