// ---- Created with 3Dmigoto v1.3.16.41 on Sat Jan 09 22:44:07 2021

cbuffer _Globals : register(b0)
{
  float2 invPixelSize : packoffset(c0);
  float4 depthFactors : packoffset(c1);
  float2 fadeParams : packoffset(c2);
  float4 color : packoffset(c3);
  float4 color2 : packoffset(c4);
  float4 colorMatrix0 : packoffset(c5);
  float4 colorMatrix1 : packoffset(c6);
  float4 colorMatrix2 : packoffset(c7);
  float exponent : packoffset(c8);
  float4 ironsightsDofParams : packoffset(c9);
  uint4 mainTextureDimensions : packoffset(c10);
  float cubeArrayIndex : packoffset(c11);
  float g_outputExposureMultiplier : packoffset(c11.y);
  float4 combineTextureWeights[2] : packoffset(c12);
  float4x3 g_normalBasisTransforms[6] : packoffset(c14);
}

SamplerState mainTextureSampler_s : register(s0);
Texture2D<float4> mainTexture : register(t0);


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


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

  r0.xyzw = mainTexture.Sample(mainTextureSampler_s, v2.xy).xyzw;
  o0.xyzw = color.xyzw * r0.xyzw;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v1.3.16.41 on Sat Jan 09 22:44:07 2021
//
//
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
//   float2 invPixelSize;               // Offset:    0 Size:     8 [unused]
//   float4 depthFactors;               // Offset:   16 Size:    16 [unused]
//   float2 fadeParams;                 // Offset:   32 Size:     8 [unused]
//   float4 color;                      // Offset:   48 Size:    16
//   float4 color2;                     // Offset:   64 Size:    16 [unused]
//   float4 colorMatrix0;               // Offset:   80 Size:    16 [unused]
//   float4 colorMatrix1;               // Offset:   96 Size:    16 [unused]
//   float4 colorMatrix2;               // Offset:  112 Size:    16 [unused]
//   float exponent;                    // Offset:  128 Size:     4 [unused]
//   float4 ironsightsDofParams;        // Offset:  144 Size:    16 [unused]
//   uint4 mainTextureDimensions;       // Offset:  160 Size:    16 [unused]
//   float cubeArrayIndex;              // Offset:  176 Size:     4 [unused]
//   float g_outputExposureMultiplier;  // Offset:  180 Size:     4 [unused]
//   float4 combineTextureWeights[2];   // Offset:  192 Size:    32 [unused]
//   float4x3 g_normalBasisTransforms[6];// Offset:  224 Size:   288 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// mainTextureSampler                sampler      NA          NA    0        1
// mainTexture                       texture  float4          2d    0        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   xyzw        1     NONE   float
// TEXCOORD                 1   xy          2     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[4], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v2.xy
dcl_output o0.xyzw
dcl_temps 1
sample_indexable(texture2d)(float,float,float,float) r0.xyzw, v2.xyxx, t0.xyzw, s0
mul o0.xyzw, r0.xyzw, cb0[3].xyzw
ret
// Approximately 3 instruction slots used

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