Skip to content

FfxSssrDispatchDescription

struct FfxSssrDispatchDescription

A structure encapsulating the parameters for dispatching the various passes of FidelityFX Stochastic Screen Space Reflections.

Dependencies: FfxDimensions2D, FfxFloatCoords2D, FfxResource

Public Interface

Public Members:

FfxCommandList commandList

FfxCommandList commandList

The FfxCommandList to record SSSR rendering commands into.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 112, column 25)

FfxResource color

FfxResource color

A FfxResource containing the color buffer for the current frame.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 113, column 25)

FfxResource depth

FfxResource depth

A FfxResource containing the depth buffer for the current frame.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 114, column 25)

FfxResource motionVectors

FfxResource motionVectors

A FfxResource containing the motion vectors buffer for the current frame.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 115, column 25)

FfxResource normal

FfxResource normal

A FfxResource containing the normal buffer for the current frame.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 116, column 25)

FfxResource materialParameters

FfxResource materialParameters

A FfxResource containing the roughness buffer for the current frame.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 117, column 25)

FfxResource environmentMap

FfxResource environmentMap

A FfxResource containing the environment map to fallback to when screenspace data is not sufficient.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 118, column 25)

FfxResource brdfTexture

FfxResource brdfTexture

A FfxResource containing the precomputed brdf LUT.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 119, column 25)

FfxResource output

FfxResource output

A FfxResource to store the result of the SSSR algorithm into.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 120, column 25)

float invViewProjection

float invViewProjection

An array containing the inverse of the view projection matrix in column major layout.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 121, column 25)

float projection

float projection

An array containing the projection matrix in column major layout.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 122, column 25)

float invProjection

float invProjection

An array containing the inverse of the projection matrix in column major layout.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 123, column 25)

float view

float view

An array containing the view matrix in column major layout.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 124, column 25)

float invView

float invView

An array containing the inverse of the view matrix in column major layout.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 125, column 25)

float prevViewProjection

float prevViewProjection

An array containing the previous frame’s view projection matrix in column major layout.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 126, column 25)

FfxDimensions2D renderSize

FfxDimensions2D renderSize

The resolution that was used for rendering the input resources.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 127, column 25)

FfxFloatCoords2D motionVectorScale

FfxFloatCoords2D motionVectorScale

The scale factor to apply to motion vectors.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 128, column 25)

float iblFactor

float iblFactor

A factor to control the intensity of the image based lighting. Set to 1 for an HDR probe.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 129, column 25)

float normalUnPackMul

float normalUnPackMul

A multiply factor to transform the normal to the space expected by SSSR.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 130, column 25)

float normalUnPackAdd

float normalUnPackAdd

An offset to transform the normal to the space expected by SSSR.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 131, column 25)

uint32_t roughnessChannel

uint32_t roughnessChannel

The channel to read the roughness from the materialParameters texture.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 132, column 25)

bool isRoughnessPerceptual

bool isRoughnessPerceptual

A boolean to describe the space used to store roughness in the materialParameters texture. If false, we assume roughness squared was stored in the Gbuffer.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 133, column 25)

float temporalStabilityFactor

float temporalStabilityFactor

A factor to control the accmulation of history values. Higher values reduce noise, but are more likely to exhibit ghosting artefacts.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 134, column 25)

float depthBufferThickness

float depthBufferThickness

A bias for accepting hits. Larger values can cause streaks, lower values can cause holes.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 135, column 25)

float roughnessThreshold

float roughnessThreshold

Regions with a roughness value greater than this threshold won’t spawn rays.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 136, column 25)

float varianceThreshold

float varianceThreshold

Luminance differences between history results will trigger an additional ray if they are greater than this threshold value.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 137, column 25)

uint32_t maxTraversalIntersections

uint32_t maxTraversalIntersections

Caps the maximum number of lookups that are performed from the depth buffer hierarchy. Most rays should terminate after approximately 20 lookups.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 138, column 25)

uint32_t minTraversalOccupancy

uint32_t minTraversalOccupancy

Exit the core loop early if less than this number of threads are running.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 139, column 25)

uint32_t mostDetailedMip

uint32_t mostDetailedMip

The most detailed MIP map level in the depth hierarchy. Perfect mirrors always use 0 as the most detailed level.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 140, column 25)

uint32_t samplesPerQuad

uint32_t samplesPerQuad

The minimum number of rays per quad. Variance guided tracing can increase this up to a maximum of 4.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 141, column 25)

uint32_t temporalVarianceGuidedTracingEnabled

uint32_t temporalVarianceGuidedTracingEnabled

A boolean controlling whether a ray should be spawned on pixels where a temporal variance is detected or not.

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 142, column 25)

Source: sdk/include/FidelityFX/host/ffx_sssr.h (line 110, column 1)