FfxCacaoConstants
struct FfxCacaoConstantsA structure for the constant buffer used by FidelityFX CACAO.
Public Interface
Public Members:
float DepthUnpackConsts
float DepthUnpackConstsSource: sdk/include/FidelityFX/host/ffx_cacao.h (line 311, column 25)
float CameraTanHalfFOV
float CameraTanHalfFOVMultiply and add values for clip to view depth conversion.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 312, column 25)
float NDCToViewMul
float NDCToViewMultan(fov/2) for the x and y dimensions.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 314, column 25)
float NDCToViewAdd
float NDCToViewAddMultiplication value for normalized device coordinates (NDC) to View conversion.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 315, column 25)
float DepthBufferUVToViewMul
float DepthBufferUVToViewMulAddition value for NDC to view conversion.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 317, column 25)
float DepthBufferUVToViewAdd
float DepthBufferUVToViewAddMultiplication value for the depth buffer’s UV to View conversion.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 318, column 25)
float EffectRadius
float EffectRadiusAddition value for the depth buffer’s UV to view conversion.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 320, column 25)
float EffectShadowStrength
float EffectShadowStrengthThe radius in world space of the occlusion sphere. A larger radius will make further objects contribute to the ambient occlusion of a point.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 321, column 25)
float EffectShadowPow
float EffectShadowPowThe linear multiplier for shadows. Higher values intensify the shadow.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 322, column 25)
float EffectShadowClamp
float EffectShadowClampThe exponent for shadow values. Larger values create darker shadows.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 323, column 25)
float EffectFadeOutMul
float EffectFadeOutMulClamps the shadow values to be within a certain range.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 325, column 25)
float EffectFadeOutAdd
float EffectFadeOutAddMultiplication value for effect fade out.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 326, column 25)
float EffectHorizonAngleThreshold
float EffectHorizonAngleThresholdAddition value for effect fade out.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 327, column 25)
float EffectSamplingRadiusNearLimitRec
float EffectSamplingRadiusNearLimitRecMinimum angle necessary between geometry and a point to create occlusion. Adjusting this value helps reduce self-shadowing.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 328, column 25)
float DepthPrecisionOffsetMod
float DepthPrecisionOffsetModDefault: EffectRadius*1.2. Used to set limit on the sampling disk size when near.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 330, column 25)
float NegRecEffectRadius
float NegRecEffectRadiusDefault: 0.9992. Offset used to prevent artifacts due to imprecision.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 331, column 25)
float LoadCounterAvgDiv
float LoadCounterAvgDivNegative reciprocal of the effect radius.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 332, column 25)
float AdaptiveSampleCountLimit
float AdaptiveSampleCountLimitMultiplier value to get average from loadcounter value.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 333, column 25)
float InvSharpness
float InvSharpnessLimits the total number of samples taken at adaptive quality levels.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 335, column 25)
int BlurNumPasses
int BlurNumPassesThe sharpness controls how much blur should bleed over edges.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 336, column 25)
float BilateralSigmaSquared
float BilateralSigmaSquaredNumber of blur passes. Default uses 4, with lowest quality using 2.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 337, column 25)
float BilateralSimilarityDistanceSigma
float BilateralSimilarityDistanceSigmaOnly affects downsampled SSAO. Higher values create a larger blur.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 338, column 25)
float PatternRotScaleMatrices
float PatternRotScaleMatricesOnly affects downsampled SSAO. Lower values create sharper edges.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 340, column 25)
float NormalsUnpackMul
float NormalsUnpackMulSampling pattern rotation/scale matrices.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 342, column 25)
float NormalsUnpackAdd
float NormalsUnpackAddMultiplication value to unpack normals. Set to 1 if normals are already in [-1,1] range.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 343, column 25)
float DetailAOStrength
float DetailAOStrengthAddition value to unpack normals. Set to 0 if normals are already in [-1,1]range.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 344, column 25)
float Dummy0
float Dummy0Adds in more detailed shadows based on edges. These are less temporally stable.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 345, column 25)
float SSAOBufferDimensions
float SSAOBufferDimensionsSource: sdk/include/FidelityFX/host/ffx_cacao.h (line 347, column 25)
float SSAOBufferInverseDimensions
float SSAOBufferInverseDimensionsDimensions of SSAO buffer.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 348, column 25)
float DepthBufferDimensions
float DepthBufferDimensionsSource: sdk/include/FidelityFX/host/ffx_cacao.h (line 350, column 25)
float DepthBufferInverseDimensions
float DepthBufferInverseDimensionsDimensions of the depth buffer.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 351, column 25)
int DepthBufferOffset
int DepthBufferOffsetSource: sdk/include/FidelityFX/host/ffx_cacao.h (line 353, column 25)
int Pad
int PadDefault is (0,0). Read offset for depth buffer.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 354, column 8)
float PerPassFullResUVOffset
float PerPassFullResUVOffsetSource: sdk/include/FidelityFX/host/ffx_cacao.h (line 355, column 25)
float InputOutputBufferDimensions
float InputOutputBufferDimensionsUV Offsets used in adaptive approach.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 357, column 25)
float InputOutputBufferInverseDimensions
float InputOutputBufferInverseDimensionsDimensions of the output AO buffer.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 358, column 25)
float ImportanceMapDimensions
float ImportanceMapDimensionsSource: sdk/include/FidelityFX/host/ffx_cacao.h (line 360, column 25)
float ImportanceMapInverseDimensions
float ImportanceMapInverseDimensionsDimensions of the importance map.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 361, column 25)
float DeinterleavedDepthBufferDimensions
float DeinterleavedDepthBufferDimensionsSource: sdk/include/FidelityFX/host/ffx_cacao.h (line 363, column 25)
float DeinterleavedDepthBufferInverseDimensions
float DeinterleavedDepthBufferInverseDimensionsDimensions of the deinterleaved depth buffer.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 364, column 25)
float DeinterleavedDepthBufferOffset
float DeinterleavedDepthBufferOffsetSource: sdk/include/FidelityFX/host/ffx_cacao.h (line 366, column 25)
float DeinterleavedDepthBufferNormalisedOffset
float DeinterleavedDepthBufferNormalisedOffsetDefault is (0,0). Read offset for the deinterleaved depth buffer.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 367, column 25)
FfxFloat32x4x4 NormalsWorldToViewspaceMatrix
FfxFloat32x4x4 NormalsWorldToViewspaceMatrixDefault is (0,0). Normalized read offset for the deinterleaved depth buffer.
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 369, column 22)
Source: sdk/include/FidelityFX/host/ffx_cacao.h (line 310, column 1)