FidelityFX FSR1

FidelityFX Super Resolution 1 GPU documentation.

Functions

Return type

Description

FFX_STATIC void

ffxFsrPopulateEasuConstants ( FFX_PARAMETER_INOUT FfxUInt32x4 con0, FFX_PARAMETER_INOUT FfxUInt32x4 con1, FFX_PARAMETER_INOUT FfxUInt32x4 con2, FFX_PARAMETER_INOUT FfxUInt32x4 con3, FFX_PARAMETER_IN FfxFloat32 inputViewportInPixelsX, FFX_PARAMETER_IN FfxFloat32 inputViewportInPixelsY, FFX_PARAMETER_IN FfxFloat32 inputSizeInPixelsX, FFX_PARAMETER_IN FfxFloat32 inputSizeInPixelsY, FFX_PARAMETER_IN FfxFloat32 outputSizeInPixelsX, FFX_PARAMETER_IN FfxFloat32 outputSizeInPixelsY )
Setup required constant values for EASU (works on CPU or GPU).

FFX_STATIC void

ffxFsrPopulateEasuConstantsOffset ( FFX_PARAMETER_INOUT FfxUInt32x4 con0, FFX_PARAMETER_INOUT FfxUInt32x4 con1, FFX_PARAMETER_INOUT FfxUInt32x4 con2, FFX_PARAMETER_INOUT FfxUInt32x4 con3, FFX_PARAMETER_IN FfxFloat32 inputViewportInPixelsX, FFX_PARAMETER_IN FfxFloat32 inputViewportInPixelsY, FFX_PARAMETER_IN FfxFloat32 inputSizeInPixelsX, FFX_PARAMETER_IN FfxFloat32 inputSizeInPixelsY, FFX_PARAMETER_IN FfxFloat32 outputSizeInPixelsX, FFX_PARAMETER_IN FfxFloat32 outputSizeInPixelsY, FFX_PARAMETER_IN FfxFloat32 inputOffsetInPixelsX, FFX_PARAMETER_IN FfxFloat32 inputOffsetInPixelsY )
Setup required constant values for EASU (works on CPU or GPU).

Detailed description

FidelityFX Super Resolution 1 GPU documentation.

Global functions

ffxFsrPopulateEasuConstants

Copied!

FFX_STATIC  void ffxFsrPopulateEasuConstants (
    FFX_PARAMETER_INOUT FfxUInt32x4  con0,
    FFX_PARAMETER_INOUT FfxUInt32x4  con1,
    FFX_PARAMETER_INOUT FfxUInt32x4  con2,
    FFX_PARAMETER_INOUT FfxUInt32x4  con3,
    FFX_PARAMETER_IN FfxFloat32  inputViewportInPixelsX,
    FFX_PARAMETER_IN FfxFloat32  inputViewportInPixelsY,
    FFX_PARAMETER_IN FfxFloat32  inputSizeInPixelsX,
    FFX_PARAMETER_IN FfxFloat32  inputSizeInPixelsY,
    FFX_PARAMETER_IN FfxFloat32  outputSizeInPixelsX,
    FFX_PARAMETER_IN FfxFloat32  outputSizeInPixelsY
)

Setup required constant values for EASU (works on CPU or GPU).

Parameters:

con0

con1

con2

con3

inputViewportInPixelsX

The rendered image resolution being upscaled in X dimension.

inputViewportInPixelsY

The rendered image resolution being upscaled in Y dimension.

inputSizeInPixelsX

The resolution of the resource containing the input image (useful for dynamic resolution) in X dimension.

inputSizeInPixelsY

The resolution of the resource containing the input image (useful for dynamic resolution) in Y dimension.

outputSizeInPixelsX

The display resolution which the input image gets upscaled to in X dimension.

outputSizeInPixelsY

The display resolution which the input image gets upscaled to in Y dimension.


ffxFsrPopulateEasuConstantsOffset

Copied!

FFX_STATIC  void ffxFsrPopulateEasuConstantsOffset (
    FFX_PARAMETER_INOUT FfxUInt32x4  con0,
    FFX_PARAMETER_INOUT FfxUInt32x4  con1,
    FFX_PARAMETER_INOUT FfxUInt32x4  con2,
    FFX_PARAMETER_INOUT FfxUInt32x4  con3,
    FFX_PARAMETER_IN FfxFloat32  inputViewportInPixelsX,
    FFX_PARAMETER_IN FfxFloat32  inputViewportInPixelsY,
    FFX_PARAMETER_IN FfxFloat32  inputSizeInPixelsX,
    FFX_PARAMETER_IN FfxFloat32  inputSizeInPixelsY,
    FFX_PARAMETER_IN FfxFloat32  outputSizeInPixelsX,
    FFX_PARAMETER_IN FfxFloat32  outputSizeInPixelsY,
    FFX_PARAMETER_IN FfxFloat32  inputOffsetInPixelsX,
    FFX_PARAMETER_IN FfxFloat32  inputOffsetInPixelsY
)

Setup required constant values for EASU (works on CPU or GPU).

Parameters:

con0

con1

con2

con3

inputViewportInPixelsX

The resolution of the input in the X dimension.

inputViewportInPixelsY

The resolution of the input in the Y dimension.

inputSizeInPixelsX

The input size in pixels in the X dimension.

inputSizeInPixelsY

The input size in pixels in the Y dimension.

outputSizeInPixelsX

The output size in pixels in the X dimension.

outputSizeInPixelsY

The output size in pixels in the Y dimension.

inputOffsetInPixelsX

The input image offset in the X dimension into the resource containing it (useful for dynamic resolution).

inputOffsetInPixelsY

The input image offset in the Y dimension into the resource containing it (useful for dynamic resolution).