|
|
|
@ -858,19 +858,19 @@ FfxFloat32x2 FFX_CACAO_BilateralUpscale_LoadSSAO(FfxUInt32x2 coord, FfxUInt32 in |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
FfxFloat32x4 FFX_CACAO_BilateralUpscale_LoadDepths(FfxUInt32x2 coord) |
|
|
|
{ |
|
|
|
FfxFloat32x4 depths; |
|
|
|
#if defined CACAO_BIND_SRV_DEPTH_IN |
|
|
|
depths.x = g_DepthIn.Load(FfxInt32x3(coord, 0), FfxInt32x2(0, 0)); |
|
|
|
depths.y = g_DepthIn.Load(FfxInt32x3(coord, 0), FfxInt32x2(1, 0)); |
|
|
|
depths.z = g_DepthIn.Load(FfxInt32x3(coord, 0), FfxInt32x2(0, 1)); |
|
|
|
depths.w = g_DepthIn.Load(FfxInt32x3(coord, 0), FfxInt32x2(1, 1)); |
|
|
|
return depths; |
|
|
|
#else |
|
|
|
return FfxFloat32x4(0, 0, 0, 0); |
|
|
|
#endif |
|
|
|
} |
|
|
|
// FfxFloat32x4 FFX_CACAO_BilateralUpscale_LoadDepths(FfxUInt32x2 coord) |
|
|
|
// { |
|
|
|
// FfxFloat32x4 depths; |
|
|
|
// #if defined CACAO_BIND_SRV_DEPTH_IN |
|
|
|
// depths.x = g_DepthIn.Load(FfxInt32x3(coord, 0), FfxInt32x2(0, 0)); |
|
|
|
// depths.y = g_DepthIn.Load(FfxInt32x3(coord, 0), FfxInt32x2(1, 0)); |
|
|
|
// depths.z = g_DepthIn.Load(FfxInt32x3(coord, 0), FfxInt32x2(0, 1)); |
|
|
|
// depths.w = g_DepthIn.Load(FfxInt32x3(coord, 0), FfxInt32x2(1, 1)); |
|
|
|
// return depths; |
|
|
|
// #else |
|
|
|
// return FfxFloat32x4(0, 0, 0, 0); |
|
|
|
// #endif |
|
|
|
// } |
|
|
|
|
|
|
|
FfxFloat32 FFX_CACAO_BilateralUpscale_LoadDownscaledDepth(FfxUInt32x2 coord, FfxUInt32 index) |
|
|
|
{ |
|
|
|
|