//HUD VS 12 update. Dojo squares 2.
// ---- Created with 3Dmigoto v0.6.181 on Fri Mar  1 19:46:31 2024

cbuffer Constants : register(b0)
{
  float4 vfuniforms[192] : packoffset(c0);
}



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


void main(
  float4 v0 : COLOR0,
  float4 v1 : SV_Position0,
  uint v2 : SV_InstanceID0,
  out float4 o0 : COLOR0,
  out float4 o1 : TEXCOORD0,
  out float4 o2 : TEXCOORD1,
  out float2 o3 : TEXCOORD2,
  out float4 o4 : SV_Position0)
{
// Needs manual fix for instruction:
// unknown dcl_: dcl_input_sgv v2.x, instance_id
  float4 r0,r1;
  uint4 bitmask, uiDest;
  float4 fDest;

  o0.xyzw = v0.xyzw;
  r0.x = (uint)v2.x << 3;
  r0.x = (uint)r0.x;
  r0.x = 0.100000001 + r0.x;
  r0.x = (uint)r0.x;
  o1.xyzw = vfuniforms[r0.x].xyzw;
  bitmask.x = ((~(-1 << 29)) << 3) & 0xffffffff;  r0.x = (((uint)v2.x << 3) & bitmask.x) | ((uint)2 & ~bitmask.x);
  bitmask.y = ((~(-1 << 29)) << 3) & 0xffffffff;  r0.y = (((uint)v2.x << 3) & bitmask.y) | ((uint)6 & ~bitmask.y);
  bitmask.z = ((~(-1 << 29)) << 3) & 0xffffffff;  r0.z = (((uint)v2.x << 3) & bitmask.z) | ((uint)1 & ~bitmask.z);
  r0.xyz = (uint3)r0.xyz;
  r0.yzw = float3(0.100000001,1.10000002,0.100000001) + r0.yyz;
  r1.xyzw = float4(0.100000001,1.10000002,2.0999999,3.0999999) + r0.xxxx;
  r1.xyzw = (uint4)r1.xyzw;
  r0.xyz = (uint3)r0.yzw;
  o2.xyzw = vfuniforms[r0.z].xyzw;
  o3.x = dot(v1.xyzw, vfuniforms[r0.x].xyzw);
  o3.y = dot(v1.xyzw, vfuniforms[r0.y].xyzw);
  o4.x = dot(v1.xyzw, vfuniforms[r1.x].xyzw);
  o4.y = dot(v1.xyzw, vfuniforms[r1.y].xyzw);
  o4.z = dot(v1.xyzw, vfuniforms[r1.z].xyzw);
  o4.w = dot(v1.xyzw, vfuniforms[r1.w].xyzw);
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//   using 3Dmigoto v0.6.181 on Fri Mar  1 19:46:31 2024
//
//
// Buffer Definitions:
//
// cbuffer Constants
// {
//
//   float4 vfuniforms[192];            // Offset:    0 Size:  3072
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// Constants                         cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// COLOR                    0   xyzw        0     NONE   float   xyzw
// SV_Position              0   xyzw        1     NONE   float   xyzw
// SV_InstanceID            0   x           2   INSTID    uint   x
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// COLOR                    0   xyzw        0     NONE   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xy          3     NONE   float   xy
// SV_Position              0   xyzw        4      POS   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[192], dynamicIndexed
dcl_input v0.xyzw
dcl_input v1.xyzw
dcl_input_sgv v2.x, instance_id
dcl_output o0.xyzw
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xy
dcl_output_siv o4.xyzw, position
dcl_temps 2
mov o0.xyzw, v0.xyzw
ishl r0.x, v2.x, l(3)
utof r0.x, r0.x
add r0.x, r0.x, l(0.100000)
ftou r0.x, r0.x
mov o1.xyzw, cb0[r0.x + 0].xyzw
bfi r0.xyz, l(29, 29, 29, 0), l(3, 3, 3, 0), v2.xxxx, l(2, 6, 1, 0)
utof r0.xyz, r0.xyzx
add r0.yzw, r0.yyyz, l(0.000000, 0.100000, 1.100000, 0.100000)
add r1.xyzw, r0.xxxx, l(0.100000, 1.100000, 2.100000, 3.100000)
ftou r1.xyzw, r1.xyzw
ftou r0.xyz, r0.yzwy
mov o2.xyzw, cb0[r0.z + 0].xyzw
dp4 o3.x, v1.xyzw, cb0[r0.x + 0].xyzw
dp4 o3.y, v1.xyzw, cb0[r0.y + 0].xyzw
dp4 o4.x, v1.xyzw, cb0[r1.x + 0].xyzw
dp4 o4.y, v1.xyzw, cb0[r1.y + 0].xyzw
dp4 o4.z, v1.xyzw, cb0[r1.z + 0].xyzw
dp4 o4.w, v1.xyzw, cb0[r1.w + 0].xyzw
ret
// Approximately 20 instruction slots used

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