Skip to content

FidelityFX SPD

Navigation: SDKGPUFidelityFX GPU References

FidelityFX SPD

FidelityFX Single Pass Downsampler 2.0 GPU documentation.

Functions

ffxSpdSetup

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

Setup required constant values for SPD (CPU).

Parameters:

  • dispatchThreadGroupCountXY (FfxUInt32x2) – [out] CPU side: dispatch thread group count xy. z is number of slices of the input texture
  • workGroupOffset (FfxUInt32x2) – [out] GPU side: pass in as constant
  • numWorkGroupsAndMips (FfxUInt32x2) – [out] GPU side: pass in as constant
  • rectInfo (FfxUInt32x4) – [in] left, top, width, height
  • mips (FfxInt32) – [in] optional: if -1, calculate based on rect width and height

Returns: FFX_STATIC void

Source: sdk/include/FidelityFX/gpu/spd/ffx_spd.h (line 38, column 17)

ffxSpdSetup

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

Setup required constant values for SPD (CPU).

Parameters:

  • dispatchThreadGroupCountXY (FfxUInt32x2) – [out] CPU side: dispatch thread group count xy. z is number of slices of the input texture
  • workGroupOffset (FfxUInt32x2) – [out] GPU side: pass in as constant
  • numWorkGroupsAndMips (FfxUInt32x2) – [out] GPU side: pass in as constant
  • rectInfo (FfxUInt32x4) – [in] left, top, width, height

Returns: FFX_STATIC void

Source: sdk/include/FidelityFX/gpu/spd/ffx_spd.h (line 80, column 17)