FfxFrameInterpolationDispatchDescription

File location: sdk/include/FidelityFX/host/ffx_frameinterpolation.h

Detailed description

Data fields

Type

Description

uint32_t

flags
combination of FfxFrameInterpolationDispatchFlags

FfxCommandList

commandList
The “FfxCommandList“ to record frame interpolation commands into.

FfxDimensions2D

displaySize
The destination output dimensions.

FfxDimensions2D

renderSize
The dimensions used to render game content, dilatedDepth, dilatedMotionVectors are expected to be of ths size.

FfxResource

currentBackBuffer
The current presentation color, if currentBackBuffer_HUDLess is not used, this will be used as interpolation source data.

FfxResource

currentBackBuffer_HUDLess
The current presentation color without HUD content, when use it will be used as interpolation source data.

FfxResource

output
The output resource where to store the interpolated result.

FfxRect2D

interpolationRect
The area of the backbuffer that should be used for interpolation in case only a part of the screen is used e.g. due to movie bars.

FfxResource

opticalFlowVector
The optical flow motion vectors (see example computation in the FfxOpticalFlow effect)

FfxResource

opticalFlowSceneChangeDetection
The optical flow scene change detection data.

FfxDimensions2D

opticalFlowBufferSize
The optical flow motion vector resource dimensions.

FfxFloatCoords2D

opticalFlowScale
The optical flow motion vector scale factor, used to scale resoure values into [0.0,1.0] range.

int

opticalFlowBlockSize
The optical flow block dimension size.

float

cameraNear
The distance to the near plane of the camera.

float

cameraFar
The distance to the far plane of the camera. This is used only used in case of non infinite depth.

float

cameraFovAngleVertical
The camera angle field of view in the vertical direction (expressed in radians).

float

viewSpaceToMetersFactor
The unit to scale view space coordinates to meters.

float

frameTimeDelta
The time elapsed since the last frame (expressed in milliseconds).

bool

reset
A boolean value which when set to true, indicates the camera has moved discontinuously.

FfxBackbufferTransferFunction

backBufferTransferFunction
The transfer function use to convert interpolation source color data to linear RGB.

float

minMaxLuminance
Min and max luminance values, used when converting HDR colors to linear RGB.

uint64_t

frameID
Identifier used to select internal resources when async support is enabled. Must increment by exactly one (1) for each frame. Any non-exactly-one difference will reset the frame generation logic.