GetJitterPhaseCount

Function GetJitterPhaseCount 

Source
pub unsafe extern "C" fn GetJitterPhaseCount(
    renderWidth: i32,
    displayWidth: i32,
) -> i32
Expand description

A helper function to calculate the jitter phase count from display resolution.

For more detailed information about the application of camera jitter to your application’s rendering please refer to the ffxFsr2GetJitterOffset function.

The table below shows the jitter phase count which this function would return for each of the quality presets.

Quality presetScale factorPhase count
FFX_FSR2_QUALITY_MODE_QUALITY1.5x18
FFX_FSR2_QUALITY_MODE_BALANCED1.7x23
FFX_FSR2_QUALITY_MODE_PERFORMANCE2.0x32
FFX_FSR2_QUALITY_MODE_ULTRA_PERFORMANCE3.0x72
Custom[1..n]xceil(8*n^2)

@param [in] renderWidth The render resolution width. @param [in] displayWidth The display resolution width.

@returns The jitter phase count for the scaling factor between renderWidth and displayWidth.

@ingroup FSR2