//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.181 on Sun Aug 27 22:07:18 2023
//
//
// Buffer Definitions:
//
// cbuffer GTAOConstantBuffer
// {
//
//   struct GTAOConstants
//   {
//
//       int2 ViewportSize;             // Index:    0
//       float2 ViewportPixelSize;      // Index:    0.z
//       float2 DepthUnpackConsts;      // Index:    1
//       float2 CameraTanHalfFOV;       // Index:    1.z
//       float2 NDCToViewMul;           // Index:    2
//       float2 NDCToViewAdd;           // Index:    2.z
//       float2 NDCToViewMul_x_PixelSize;// Index:    3
//       float EffectRadius;            // Index:    3.z
//       float EffectFalloffRange;      // Index:    3.w
//       float RadiusMultiplier;        // Index:    4
//       float Padding0;                // Index:    4.y
//       float FinalValuePower;         // Index:    4.z
//       float DenoiseBlurBeta;         // Index:    4.w
//       float SampleDistributionPower; // Index:    5
//       float ThinOccluderCompensation;// Index:    5.y
//       float DepthMIPSamplingOffset;  // Index:    5.z
//       int NoiseIndex;                // Index:    5.w
//
//   } g_GTAOConsts;                    // Index:    0-5              Components:    24
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// g_samplerPointClamp               sampler      NA          NA   10        1
// sourceNDCDepth                    texture   float          2d    0        1
// g_outWorkingDepthMIP0                 UAV   float          2d    0        1
// GTAOConstantBuffer                cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// no Input
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// no Output
cs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[2], immediateIndexed
dcl_sampler s10, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_uav_typed_texture2d (float,float,float,float) u0
dcl_input vThreadID.xy
dcl_temps 1
dcl_thread_group 8, 8, 1
utof r0.xy, vThreadID.xyxx
mul r0.xy, r0.xyxx, cb0[0].zwzz
gather4_aoffimmi_indexable(1,1,0)(texture2d)(float,float,float,float) r0.xyzw, r0.xyxx, t0.xyzw, s10.x
add r0.xyzw, -r0.wzxy, cb0[1].yyyy
div r0.xyzw, cb0[1].xxxx, r0.xyzw
max r0.xyzw, r0.xyzw, l(0.000000, 0.000000, 0.000000, 0.000000)
min r0.xyzw, r0.xyzw, l(65504.000000, 65504.000000, 65504.000000, 65504.000000)
add r0.x, r0.y, r0.x
add r0.x, r0.z, r0.x
add r0.x, r0.w, r0.x
mul r0.x, r0.x, l(0.250000)
div r0.x, cb0[1].x, r0.x
add r0.x, -r0.x, cb0[1].y
store_uav_typed u0.xyzw, vThreadID.xyyy, r0.xxxx
ret
// Approximately 15 instruction slots used
