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).


Related pages

  • Visit the FidelityFX SDK product page for download links and more information.

Looking for more documentation on GPUOpen?

AMD GPUOpen software blogs

Our handy software release blogs will help you make good use of our tools, SDKs, and effects, as well as sharing the latest features with new releases.

GPUOpen Manuals

Don’t miss our manual documentation! And if slide decks are what you’re after, you’ll find 100+ of our finest presentations here.

AMD GPUOpen Performance Guides

The home of great performance and optimization advice for AMD RDNAâ„¢ 2 GPUs, AMD Ryzenâ„¢ CPUs, and so much more.

Getting started: AMD GPUOpen software

New or fairly new to AMD’s tools, libraries, and effects? This is the best place to get started on GPUOpen!

AMD GPUOpen Getting Started Development and Performance

Looking for tips on getting started with developing and/or optimizing your game, whether on AMD hardware or generally? We’ve got you covered!

AMD GPUOpen Technical blogs

Browse our technical blogs, and find valuable advice on developing with AMD hardware, ray tracing, Vulkan®, DirectX®, Unreal Engine, and lots more.

Find out more about our software!

AMD GPUOpen Effects - AMD FidelityFX technologies

Create wonder. No black boxes. Meet the AMD FidelityFX SDK!

AMD GPUOpen Samples

Browse all our useful samples. Perfect for when you’re needing to get started, want to integrate one of our libraries, and much more.

AMD GPUOpen developer SDKs

Discover what our SDK technologies can offer you. Query hardware or software, manage memory, create rendering applications or machine learning, and much more!

AMD GPUOpen Developer Tools

Analyze, Optimize, Profile, Benchmark. We provide you with the developer tools you need to make sure your game is the best it can be!