// pop-up screen distortion effect (when in your spaceship)
// disabled in d3dx.ini
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
//   using 3Dmigoto v1.2.56 on Tue Mar 21 11:56:31 2017
//
//
// Buffer Definitions: 
//
// cbuffer HPixel_Buffer
// {
//
//   float4 g_TargetUvParam;            // Offset:    0 Size:    16
//
// }
//
// cbuffer EffectParameterIndex
// {
//
//   uint g_EffectParameterIndex;       // Offset:    0 Size:     4
//
// }
//
// cbuffer ExposureBuffer
// {
//
//   float4 g_Exposure;                 // Offset:    0 Size:    16
//
// }
//
// Resource bind info for g_EffectPixelCommonBuffers
// {
//
//   struct EffectPixelCommonBuffer
//   {
//       
//       float4 m_ToneCurveRate;        // Offset:    0
//       float4 m_DepthRate;            // Offset:   16
//       float4 m_ColorCorrection;      // Offset:   32
//       float4 m_FogColor;             // Offset:   48
//       float4 m_Gamma;                // Offset:   64
//       float4 m_AlphaCurveRate;       // Offset:   80
//       float4 m_DitherRate;           // Offset:   96
//
//   } $Element;                        // Offset:    0 Size:   112
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// g_ColorTextureSampler             sampler      NA          NA    0        1
// g_MaskTextureSampler              sampler      NA          NA    2        1
// g_ColorTexture                    texture  float4          2d    0        1
// g_MaskTexture                     texture  float4          2d    2        1
// g_EffectPixelCommonBuffers        texture  struct         r/o   27        1
// EffectParameterIndex              cbuffer      NA          NA    1        1
// ExposureBuffer                    cbuffer      NA          NA    7        1
// HPixel_Buffer                     cbuffer      NA          NA   12        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xy  
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xyzw        2     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_constantbuffer cb12[1], immediateIndexed
dcl_constantbuffer cb1[1], immediateIndexed
dcl_constantbuffer cb7[1], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s2, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t2
dcl_resource_structured t27, 112 
dcl_input_ps_siv linear noperspective v0.xy, position
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xyzw
dcl_output o0.xyzw
dcl_temps 2
mul r0.xyzw, v0.xyxy, cb12[0].xyxy
ld_structured_indexable(structured_buffer, stride=112)(mixed,mixed,mixed,mixed) r1.xy, cb1[0].x, l(104), t27.xyxx
mad r0.xyzw, r0.xyzw, l(2.000000, 2.000000, 2.000000, 2.000000), -v2.xyzw
mad r0.xyzw, r1.xxyy, r0.xyzw, v2.xyzw
sample_indexable(texture2d)(float,float,float,float) r1.xyzw, r0.xyxx, t0.xyzw, s0
sample_indexable(texture2d)(float,float,float,float) r0.x, r0.zwzz, t2.wxyz, s2
mul r0.y, r0.x, r0.x
ld_structured_indexable(structured_buffer, stride=112)(mixed,mixed,mixed,mixed) r0.z, cb1[0].x, l(64), t27.xxxx
mad r0.x, -r0.x, r0.x, r0.x
mad r0.x, r0.z, r0.x, r0.y
ld_structured_indexable(structured_buffer, stride=112)(mixed,mixed,mixed,mixed) r0.y, cb1[0].x, l(92), t27.xxxx
mad r0.z, r1.w, r0.x, -r0.x
mad r1.w, r0.y, r0.z, r0.x
mul r0.xyzw, r1.xyzw, v1.xyzw
ge r1.x, l(0.000100), r0.w
discard_nz r1.x
mad r1.xyz, r0.xyzx, cb7[0].xxxx, -r0.xyzx
mul r1.xyz, r1.xyzx, cb7[0].yyyy
ld_structured_indexable(structured_buffer, stride=112)(mixed,mixed,mixed,mixed) r1.w, cb1[0].x, l(76), t27.xxxx
mad o0.xyz, |r1.wwww|, r1.xyzx, r0.xyzx
mov_sat o0.w, r0.w
ret 
// Approximately 22 instruction slots used

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