// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.164 on Wed Oct 28 14:28:24 2026
//
//
// Buffer Definitions:
//
// cbuffer FrameConstants
// {
//
//   float4x4 g_xView;                  // Offset:    0 Size:    64 [unused]
//   float4x4 g_xProj;                  // Offset:   64 Size:    64 [unused]
//   float4x4 g_xViewProj;              // Offset:  128 Size:    64
//   float4x4 g_xInvView;               // Offset:  192 Size:    64 [unused]
//   float4x4 g_xInvProj;               // Offset:  256 Size:    64 [unused]
//   float4x4 g_xInvViewProj;           // Offset:  320 Size:    64 [unused]
//   float3 g_xCamPos;                  // Offset:  384 Size:    12 [unused]
//   float2 g_xRcpScreenDims;           // Offset:  400 Size:     8 [unused]
//   float2 g_xDepthProjViewUnpack;     // Offset:  408 Size:     8 [unused]
//   float4 g_axViewFrustumPlanes[6];   // Offset:  416 Size:    96 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// IniParams                         texture  float4          1d  120        1
// StereoParams                      texture  float4          2d  125        1
// FrameConstants                    cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// Position                 0   xyzw        0     NONE   float   xyzw
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xyzw        2     NONE   float   xy
// TEXCOORD                 1   xyzw        3     NONE   float   xy
// TEXCOORD                 2   xy          4     NONE   float   x
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xyzw        2     NONE   float   xyzw
// TEXCOORD                 1   xyzw        3     NONE   float   xyzw
// P                        0   x           4  RTINDEX    uint   x
//
vs_4_0
dcl_output_siv o4.x, rendertarget_array_index
dcl_constantbuffer CB0[12], immediateIndexed
dcl_resource_texture1d (float,float,float,float) t120
dcl_resource_buffer (float,float,float,float) t125
dcl_input v0.xyzw
dcl_input v1.xyzw
dcl_input v2.xy
dcl_input v3.xy
dcl_input v4.x
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_temps 6
ld_indexable(buffer)(float,float,float,float) r5.xyzw, l(0, 0, 0, 0), t125.xyzw
mov o4.x, r5.z
ld r0.xyzw, l(14, 0, 0, 0), t120.xyzw
eq r0.x, r0.x, l(15.000000)
ld r1.xyzw, l(0, 0, 0, 0), t125.xyzw
mul r2.xyzw, v0.yyyy, cb0[9].xyzw
mad r2.xyzw, cb0[8].xyzw, v0.xxxx, r2.xyzw
mad r2.xyzw, cb0[10].xyzw, v0.zzzz, r2.xyzw
add r2.xyzw, r2.xyzw, cb0[11].xyzw
mad r0.y, r1.x, r1.y, r2.x
movc r3.x, r0.x, r0.y, r2.x
mov r3.yzw, r2.yyzw
mov o3.w, r2.w
mov o1.xyzw, v1.xyzw
mov o2.xy, v2.xyxx
mov o2.zw, v3.xxxy
mov o3.x, v0.w
mov o3.y, l(0)
mov o3.z, v4.x
add r4.x, -r5.y, r3.w
mul r4.y, r5.x, r5.w
mad r4.x, r4.x, r4.y, r3.x
ne r4.y, l(1.000000), r3.w
movc r3.x, r4.y, r4.x, r3.x
mov o0.xyzw, r3.xyzw
ret
// Approximately 18 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with 3Dmigoto v0.6.164 on Wed Oct 28 14:28:24 2026
//
// cbuffer FrameConstants : register(b0)
// {
//   float4x4 g_xView : packoffset(c0);
//   float4x4 g_xProj : packoffset(c4);
//   float4x4 g_xViewProj : packoffset(c8);
//   float4x4 g_xInvView : packoffset(c12);
//   float4x4 g_xInvProj : packoffset(c16);
//   float4x4 g_xInvViewProj : packoffset(c20);
//   float3 g_xCamPos : packoffset(c24);
//   float2 g_xRcpScreenDims : packoffset(c25);
//   float2 g_xDepthProjViewUnpack : packoffset(c25.z);
//   float4 g_axViewFrustumPlanes[6] : packoffset(c26);
// }
//
//
//
// // 3Dmigoto declarations
// #define cmp -
// Texture1D<float4> IniParams : register(t120);
// Buffer<float4> StereoParams : register(t125);
//
//
// void main(
//   float4 v0 : Position0,
//   float4 v1 : COLOR0,
//   float4 v2 : TEXCOORD0,
//   float4 v3 : TEXCOORD1,
//   float2 v4 : TEXCOORD2,
//   out float4 o0 : SV_Position0,
//   out float4 o1 : COLOR0,
//   out float4 o2 : TEXCOORD0,
//   out float4 o3 : TEXCOORD1,
//   out uint o4 : P0)
// {
//   float4 r0,r1,r2,r3,r4,r5;
//   uint4 bitmask, uiDest;
//   float4 fDest;
//
//   r5.xyzw = StereoParams.Load(float4(0,0,0,0)).xyzw;
//   o4.x = r5.z;
//   r0.xyzw = IniParams.Load(float4(14,0,0,0)).xyzw;
//   r0.x = cmp(r0.x == 15.000000);
//   r1.xyzw = StereoParams.Load(float4(0,0,0,0)).xyzw;
//   r2.xyzw = g_xViewProj._m01_m11_m21_m31 * v0.yyyy;
//   r2.xyzw = g_xViewProj._m00_m10_m20_m30 * v0.xxxx + r2.xyzw;
//   r2.xyzw = g_xViewProj._m02_m12_m22_m32 * v0.zzzz + r2.xyzw;
//   r2.xyzw = g_xViewProj._m03_m13_m23_m33 + r2.xyzw;
//   r0.y = r1.x * r1.y + r2.x;
//   r3.x = r0.x ? r0.y : r2.x;
//   r3.yzw = r2.yzw;
//   o3.w = r2.w;
//   o1.xyzw = v1.xyzw;
//   o2.xy = v2.xy;
//   o2.zw = v3.xy;
//   o3.x = v0.w;
//   o3.y = 0;
//   o3.z = v4.x;
//   r4.x = r3.w + -r5.y;
//   r4.y = r5.w * r5.x;
//   r4.x = r4.x * r4.y + r3.x;
//   r4.y = cmp(1.000000 != r3.w);
//   r3.x = r4.y ? r4.x : r3.x;
//   o0.xyzw = r3.xyzw;
//   return;
// }
/////////////////////////////////////////////////////////////////////////////
