GetRenderResolutionFromQualityMode

Function GetRenderResolutionFromQualityMode 

Source
pub unsafe extern "C" fn GetRenderResolutionFromQualityMode(
    renderWidth: *mut u32,
    renderHeight: *mut u32,
    displayWidth: u32,
    displayHeight: u32,
    qualityMode: QualityMode,
) -> ErrorCode
Expand description

A helper function to calculate the rendering resolution from a target resolution and desired quality level.

This function applies the scaling factor returned by ffxFsr2GetUpscaleRatioFromQualityMode to each dimension.

@param [out] renderWidth A pointer to a uint32_t which will hold the calculated render resolution width. @param [out] renderHeight A pointer to a uint32_t which will hold the calculated render resolution height. @param [in] displayWidth The target display resolution width. @param [in] displayHeight The target display resolution height. @param [in] qualityMode The desired quality mode for FSR 2 upscaling.

@retval FFX_OK The operation completed successfully. @retval FFX_ERROR_INVALID_POINTER Either renderWidth or renderHeight was NULL. @retval FFX_ERROR_INVALID_ENUM An invalid quality mode was specified.

@ingroup FSR2