FidelityFX SPD

FidelityFX Single Pass Downsampler 2.0 GPU documentation.

Functions

Return type

Description

FFX_STATIC void

ffxSpdSetup ( FfxUInt32x2 dispatchThreadGroupCountXY, FfxUInt32x2 workGroupOffset, FfxUInt32x2 numWorkGroupsAndMips, FfxUInt32x4 rectInfo, FfxInt32 mips )
Setup required constant values for SPD (CPU).

FFX_STATIC void

ffxSpdSetup ( FfxUInt32x2 dispatchThreadGroupCountXY, FfxUInt32x2 workGroupOffset, FfxUInt32x2 numWorkGroupsAndMips, FfxUInt32x4 rectInfo )
Setup required constant values for SPD (CPU).

Detailed description

FidelityFX Single Pass Downsampler 2.0 GPU documentation.

Global functions

ffxSpdSetup

Copied!

FFX_STATIC  void ffxSpdSetup (
    FfxUInt32x2  dispatchThreadGroupCountXY,
    FfxUInt32x2  workGroupOffset,
    FfxUInt32x2  numWorkGroupsAndMips,
    FfxUInt32x4  rectInfo,
    FfxInt32  mips
)

Setup required constant values for SPD (CPU).

Parameters:

dispatchThreadGroupCountXY

CPU side: dispatch thread group count xy. z is number of slices of the input texture

workGroupOffset

GPU side: pass in as constant

numWorkGroupsAndMips

GPU side: pass in as constant

rectInfo

left, top, width, height

mips

optional: if -1, calculate based on rect width and height


ffxSpdSetup

Copied!

FFX_STATIC  void ffxSpdSetup (
    FfxUInt32x2  dispatchThreadGroupCountXY,
    FfxUInt32x2  workGroupOffset,
    FfxUInt32x2  numWorkGroupsAndMips,
    FfxUInt32x4  rectInfo
)

Setup required constant values for SPD (CPU).

Parameters:

dispatchThreadGroupCountXY

CPU side: dispatch thread group count xy. z is number of slices of the input texture

workGroupOffset

GPU side: pass in as constant

numWorkGroupsAndMips

GPU side: pass in as constant

rectInfo

left, top, width, height