// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.163 on Thu Sep 10 22:26:34 2026
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// s0_s                              sampler      NA          NA    0        1
// t0                                texture  float4          2d    0        1
// IniParams                         texture  float4          1d  120        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xyzw        2     NONE   float   xy
// TEXCOORD                 1   xyzw        3     NONE   float   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture1d (float,float,float,float) t120
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xy
dcl_input_ps linear v3.xyzw
dcl_output o0.xyzw
dcl_temps 2
ld_indexable(texture1d)(float,float,float,float) r0.x, l(11, 0, 0, 0), t120.yxzw
eq r0.x, r0.x, l(1.000000)
discard_nz r0.x
sample_indexable(texture2d)(float,float,float,float) r0.xyzw, v2.xyxx, t0.xyzw, s0
min r0.xyzw, r0.xyzw, l(1.000000, 1.000000, 1.000000, 1.000000)
max r0.xyzw, r0.xyzw, v3.xyzw
mul r0.xyzw, r0.xyzw, v1.xyzw
ge r1.x, l(0.00392156886), r0.w
discard_nz r1.x
mov o0.xyzw, r0.xyzw
ret
// Approximately 11 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with 3Dmigoto v0.6.163 on Thu Sep 10 22:26:34 2026
//
// SamplerState s0_s_s : register(s0);
// Texture2D<float4> t0 : register(t0);
//
//
// // 3Dmigoto declarations
// #define cmp -
// Texture1D<float4> IniParams : register(t120);
// Buffer<float4> StereoParams : register(t125);
//
//
// void main(
//   float4 v0 : SV_POSITION0,
//   float4 v1 : COLOR0,
//   float4 v2 : TEXCOORD0,
//   float4 v3 : TEXCOORD1,
//   out float4 o0 : SV_TARGET0)
// {
//   float4 r0,r1;
//   uint4 bitmask, uiDest;
//   float4 fDest;
//
//   r0.x = IniParams.Load(float4(11,0,0,0)).y;
//   r0.x = cmp(r0.x == 1.000000);
//   if (r0.x != 0) discard;
//   r0.xyzw = t0.Sample(s0_s_s, v2.xy).xyzw;
//   r0.xyzw = min(float4(1,1,1,1), r0.xyzw);
//   r0.xyzw = max(v3.xyzw, r0.xyzw);
//   r0.xyzw = v1.xyzw * r0.xyzw;
//   r1.x = cmp(0.00392156886 >= r0.w);
//   if (r1.x != 0) discard;
//   o0.xyzw = r0.xyzw;
//   return;
// }
/////////////////////////////////////////////////////////////////////////////
