//Flowers VS 2?
// ---- Created with 3Dmigoto v1.3.16 on Sun Jun 02 08:54:17 2019

cbuffer CB_ABuffer : register(b4)
{
  float mbufferWidth : packoffset(c0);
  float mAbufferScaleWidth : packoffset(c0.y);
  float mAbufferScaleHeight : packoffset(c0.z);
}



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


void main(
  uint v0 : SV_VertexID0,
  out float4 o0 : SV_Position0,
  out float2 o1 : TEXCOORD0)
{
// Needs manual fix for instruction:
// unknown dcl_: dcl_input_sgv v0.x, vertex_id
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;
  
  float4 stereo = StereoParams.Load(0);
  
  r0.x = (uint)v0.x >> 1;
  r0.x = (uint)r0.x;
  o0.x = r0.x * 4 + -1;
  o1.x = dot(r0.xx, mAbufferScaleWidth);
  r0.x = (int)v0.x & 1;
  r0.x = (uint)r0.x;
  o0.y = r0.x * 4 + -1;
  r0.x = -r0.x * 2 + 1;
  o1.y = mAbufferScaleHeight * r0.x;
  o0.zw = float2(0,1);
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.16384
//
//   using 3Dmigoto v1.3.16 on Sun Jun 02 08:54:17 2019
//
//
// Buffer Definitions:
//
// cbuffer CB_ABuffer
// {
//
//   float mbufferWidth;                // Offset:    0 Size:     4 [unused]
//   float mAbufferScaleWidth;          // Offset:    4 Size:     4
//   float mAbufferScaleHeight;         // Offset:    8 Size:     4
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// CB_ABuffer                        cbuffer      NA          NA    4        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_VertexID              0   x           0   VERTID    uint   x
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xy          1     NONE   float   xy
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb4[1], immediateIndexed
dcl_input_sgv v0.x, vertex_id
dcl_output_siv o0.xyzw, position
dcl_output o1.xy
dcl_temps 1
ushr r0.x, v0.x, l(1)
utof r0.x, r0.x
mad o0.x, r0.x, l(4.000000), l(-1.000000)
dp2 o1.x, r0.xxxx, cb4[0].yyyy
and r0.x, v0.x, l(1)
utof r0.x, r0.x
mad o0.y, r0.x, l(4.000000), l(-1.000000)
mad r0.x, -r0.x, l(2.000000), l(1.000000)
mul o1.y, r0.x, cb4[0].z
mov o0.zw, l(0,0,0,1.000000)
ret
// Approximately 11 instruction slots used

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