// ---- Created with 3Dmigoto v1.3.16 on Sun Apr 07 14:26:45 2019

cbuffer _Globals : register(b0)
{
  float4 g_MergeTextureSampleWeights[8] : packoffset(c0);
}

SamplerState _sampler_s0_s : register(s0);
SamplerState _sampler_s1_s : register(s1);
Texture2D<float4> _texture_s0 : register(t0);
Texture2D<float4> _texture_s1 : register(t1);


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


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

  r0.xyzw = _texture_s1.Sample(_sampler_s1_s, v1.xy).xyzw;
  r0.xyzw = g_MergeTextureSampleWeights[1].xyzw * r0.xyzw;
  r1.xyzw = _texture_s0.Sample(_sampler_s0_s, v1.xy).xyzw;
  o0.xyzw = g_MergeTextureSampleWeights[0].xyzw * r1.xyzw + r0.xyzw;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
//   using 3Dmigoto v1.3.16 on Sun Apr 07 14:26:45 2019
//
//
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
//   float4 g_MergeTextureSampleWeights[8];// Offset:    0 Size:   128
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// _sampler_s0                       sampler      NA          NA    0        1
// _sampler_s1                       sampler      NA          NA    1        1
// _texture_s0                       texture  float4          2d    0        1
// _texture_s1                       texture  float4          2d    1        1
// $Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float
// TEXCOORD                 0   xy          1     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[2], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_input_ps linear v1.xy
dcl_output o0.xyzw
dcl_temps 2
sample_indexable(texture2d)(float,float,float,float) r0.xyzw, v1.xyxx, t1.xyzw, s1
mul r0.xyzw, r0.xyzw, cb0[1].xyzw
sample_indexable(texture2d)(float,float,float,float) r1.xyzw, v1.xyxx, t0.xyzw, s0
mad o0.xyzw, cb0[0].xyzw, r1.xyzw, r0.xyzw
ret
// Approximately 5 instruction slots used

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