//DMC3 videos (HUD).
// ---- Created with 3Dmigoto v1.3.7 on Sat Mar 31 17:22:28 2018



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


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

  float4 stereo = StereoParams.Load(0);
  float4 iniparams = IniParams.Load(0);
  
  r0.xyzw = v0.xyzw;
  r1.xy = int2(16,16);
  r1.xy = v1.xy / r1.xy;
  o0.xyzw = r0.xyzw;
  o0.x+=stereo.x*iniparams.x;
  //o0.x=o0.x*iniparams.y;
  o1.xy = r1.xy;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.16384
//
//   using 3Dmigoto v1.3.7 on Sat Mar 31 17:22:28 2018
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xy
//
//
// 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 | skipOptimization
dcl_input v0.xyzw
dcl_input v1.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xy
dcl_temps 2
//
// Initial variable locations:
//   v0.x <- vi.Pos.x; v0.y <- vi.Pos.y; v0.z <- vi.Pos.z; v0.w <- vi.Pos.w;
//   v1.x <- vi.Tex0.x; v1.y <- vi.Tex0.y; v1.z <- vi.Tex0.z; v1.w <- vi.Tex0.w;
//   o1.x <- <main return value>.Tex.x; o1.y <- <main return value>.Tex.y;
//   o0.x <- <main return value>.Pos.x; o0.y <- <main return value>.Pos.y; o0.z <- <main return value>.Pos.z; o0.w <- <main return value>.Pos.w
//
#line 19 "C:\dev\dmc\dmc3\code\dmc3\source\dmc3nb\shaders\hlsl\vs\VIDEO_FRAME_V.hlsl"
mov r0.xyzw, v0.xyzw  // r0.x <- vo.Pos.x; r0.y <- vo.Pos.y; r0.z <- vo.Pos.z; r0.w <- vo.Pos.w
itof r1.xy, l(16, 16, 0, 0)
div r1.xy, v1.xyxx, r1.xyxx  // r1.x <- vo.Tex.x; r1.y <- vo.Tex.y
mov o0.xyzw, r0.xyzw
mov o1.xy, r1.xyxx
ret
// Approximately 6 instruction slots used

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