//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//   using 3Dmigoto v1.2.67 on Mon Jan 01 13:11:44 2018
//
//
// Buffer Definitions: 
//
// cbuffer Constants
// {
//
//   float4 fsize;                      // Offset:    0 Size:    16
//   float4 texscale;                   // Offset:   16 Size:    16
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// sampler_tex                       sampler      NA          NA    0        1
// tex                               texture  float4          2d    0        1
// Constants                         cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 0   xyzw        0     NONE   float   xyzw
// TEXCOORD                 1   xyzw        1     NONE   float   xyzw
// TEXCOORD                 2   xy          2     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer cb0[2], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v0.xyzw
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xy
dcl_output o0.xyzw
dcl_temps 4
mov r0.xyzw, l(0,0,0,0)
mov r1.x, -cb0[0].x
loop 
  lt r1.z, cb0[0].x, r1.x
  breakc_nz r1.z
  mov r2.xyzw, r0.xyzw
  mov r1.y, -cb0[0].y
  loop 
    lt r1.z, cb0[0].y, r1.y
    breakc_nz r1.z
    mad r1.zw, r1.xxxy, cb0[1].xxxy, v2.xxxy
    sample_l r3.xyzw, r1.zwzz, t0.xyzw, s0, l(0.000000)
    add r2.xyzw, r2.xyzw, r3.xyzw
    add r1.y, r1.y, l(1.000000)
  endloop 
  mov r0.xyzw, r2.xyzw
  add r1.x, r1.x, l(1.000000)
endloop 
mul r0.xyzw, r0.xyzw, cb0[0].wwww
mov r1.xyz, v1.xyzx
mov r1.w, l(1.000000)
mul r0.xyzw, r0.xyzw, r1.xyzw
mul r0.xyzw, r0.xyzw, v1.wwww
mad o0.xyzw, v0.xyzw, r0.wwww, r0.xyzw
ret 
// Approximately 25 instruction slots used
