//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//
// Buffer Definitions: 
//
// cbuffer _Globals
// {
//
//   bool pEnableHDR;                   // Offset:    0 Size:     4
//   int pTonemapMode;                  // Offset:    4 Size:     4
//   float pTonemapCurve;               // Offset:    8 Size:     4
//   float pTonemapExposure;            // Offset:   12 Size:     4
//   float pTonemapContrast;            // Offset:   16 Size:     4
//   float pTonemapSaturateBlacks;      // Offset:   20 Size:     4
//   float pBloomRadius;                // Offset:   24 Size:     4 [unused]
//   float pBloomIntensity;             // Offset:   28 Size:     4 [unused]
//   int pBloomBlendMode;               // Offset:   32 Size:     4 [unused]
//   float pBloomThreshold;             // Offset:   36 Size:     4 [unused]
//   float pBloomCurve;                 // Offset:   40 Size:     4 [unused]
//   float pBloomSaturation;            // Offset:   44 Size:     4 [unused]
//   bool pEnableLensdirt;              // Offset:   48 Size:     4 [unused]
//   float pLensdirtIntensity;          // Offset:   52 Size:     4 [unused]
//   float pLensdirtCurve;              // Offset:   56 Size:     4 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim      HLSL Bind  Count
// ------------------------------ ---------- ------- ----------- -------------- ------
// __s1                              sampler      NA          NA             s1      1 
// __V__texColorHDRB                 texture  float4          2d             t8      1 
// _Globals                          cbuffer      NA          NA            cb0      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 s1, mode_default
dcl_resource_texture2d (float,float,float,float) t8
dcl_input_ps linear v1.xy
dcl_output o0.xyzw
dcl_temps 5
sample_indexable(texture2d)(float,float,float,float) r0.xyzw, v1.xyxx, t8.xyzw, s1
if_nz cb0[0].x
  mul r1.xyzw, r0.wxyz, cb0[0].wwww
  log r1.xyzw, |r1.xyzw|
  mul r1.xyzw, r1.xyzw, cb0[1].xxxx
  exp r1.xyzw, r1.xyzw
  ieq r2.x, cb0[0].y, l(1)
  if_nz r2.x
    mul r2.x, r1.x, cb0[0].z
    div_sat r0.xyz, r1.yzwy, r2.xxxx
  else 
    ieq r2.x, cb0[0].y, l(2)
    if_nz r2.x
      div r2.xyz, r1.yzwy, r1.xxxx
      add r3.xyz, -r1.yzwy, r1.xxxx
      log r4.xyz, r2.xyzx
      mul r3.xyz, r3.xyzx, r4.xyzx
      exp r3.xyz, r3.xyzx
      dp3 r2.x, r2.xyzx, l(0.212600, 0.715200, 0.072200, 0.000000)
      add r2.yzw, -r1.yyzw, r3.xxyz
      mad_sat r0.xyz, r2.xxxx, r2.yzwy, r1.yzwy
    else 
      add r1.xyzw, r1.xyzw, l(1.000000, 1.000000, 1.000000, 1.000000)
      log r2.xyzw, r1.xyzw
      mul r2.xyzw, r2.xyzw, l(0.301030, 0.301030, 0.301030, 0.301030)
      add r1.xyzw, r1.xyzw, cb0[0].zzzz
      log r1.xyzw, r1.xyzw
      mul r1.xyzw, r1.xyzw, l(0.301030, 0.301030, 0.301030, 0.301030)
      div r1.xyzw, r2.xyzw, r1.xyzw
      div r1.xyz, r1.yzwy, r1.xxxx
      add r1.w, cb0[1].y, l(1.000000)
      log r2.xyz, |r1.xyzx|
      mul r2.xyz, r1.wwww, r2.xyzx
      exp r2.xyz, r2.xyzx
      sqrt r3.xyz, r1.xyzx
      add r1.xyz, r1.xyzx, -r2.xyzx
      mad_sat r0.xyz, r3.xyzx, r1.xyzx, r2.xyzx
    endif 
  endif 
endif 
mov o0.xyzw, r0.xyzw
ret 
// Approximately 42 instruction slots used
