FidelityFX Denoiser
FidelityFX Denoiser runtime library.
Enumerations
Name |
Description |
---|---|
FfxDenoiserInitializationFlagBits |
An enumeration of bit flags used when creating a “FfxDenoiserContext“. See “FfxDenoiserContextDescription“.
FFX_DENOISER_SHADOWS = (1 << 0) – A bit indicating that the denoiser is used for denoising shadows.
FFX_DENOISER_REFLECTIONS = (1 << 1) – A bit indicating that the denoiser is used for denoising reflections.
FFX_DENOISER_ENABLE_DEPTH_INVERTED = (1 << 2) – A bit indicating that the input depth buffer data provided is inverted [1..0].
|
Structs
Name |
Description |
---|---|
A structure encapsulating the FidelityFX denoiser context.
|
|
A structure encapsulating the parameters required to initialize FidelityFX Denoiser.
|
|
A structure encapsulating the parameters for dispatching of FidelityFX Denoiser.
|
|
A structure encapsulating the parameters for dispatching of FidelityFX Denoiser.
|
Functions
Return type |
Description |
---|---|
ffxDenoiserContextCreate ( FfxDenoiserContext * pContext, const FfxDenoiserContextDescription * pContextDescription )
Create a FidelityFX Denoiser context from the parameters programmed to the “FfxDenoiserContextDescription“ structure.
|
|
ffxDenoiserContextDispatchShadows ( FfxDenoiserContext * context, const FfxDenoiserShadowsDispatchDescription * dispatchDescription )
Dispatches work to the FidelityFX Denoiser context.
|
|
ffxDenoiserContextDispatchReflections ( FfxDenoiserContext * context, const FfxDenoiserReflectionsDispatchDescription * dispatchDescription )
Dispatches work to the FidelityFX Denoiser context.
|
|
ffxDenoiserContextDestroy (FfxDenoiserContext * context)
Destroy the FidelityFX Denoiser context.
|
|
Queries the effect version number.
|
Macros
Name |
Description |
---|---|
FidelityFX denoiser context count.
|
|
FidelityFX Denoiser major version.
|
|
FidelityFX Denoiser minor version.
|
|
FidelityFX Denoiser patch version.
|
Detailed description
FidelityFX Denoiser runtime library.
Global functions
ffxDenoiserContextCreate
FFX_API FfxErrorCode ffxDenoiserContextCreate (
FfxDenoiserContext * pContext,
const FfxDenoiserContextDescription * pContextDescription
)
Create a FidelityFX Denoiser context from the parameters programmed to the FfxDenoiserContextDescription
structure.
The context structure is the main object used to interact with the Denoiser API, and is responsible for the management of the internal resources used by the Denoiser algorithm. When this API is called, multiple calls will be made via the pointers contained in the backendInterface
structure. This backend will attempt to retrieve the device capabilities, and create the internal resources, and pipelines required by Denoiser to function. Depending on the precise configuration used when creating the FfxDenoiserContext
a different set of resources and pipelines might be requested via the callback functions.
The FfxDenoiserContext
should be destroyed when use of it is completed, typically when an application is unloaded or shadow denoising is disabled by a user. To destroy the Denoiser context you should call ffxDenoiserContextDestroy
.
Parameters:
context |
A pointer to a |
contextDescription |
A pointer to a |
Return values:
FFX_OK |
The operation completed successfully. |
FFX_ERROR_CODE_NULL_POINTER |
The operation failed because either |
FFX_ERROR_INCOMPLETE_INTERFACE |
The operation failed because the |
FFX_ERROR_BACKEND_API_ERROR |
The operation failed because of an error returned from the backend. |
ffxDenoiserContextDispatchShadows
FFX_API FfxErrorCode ffxDenoiserContextDispatchShadows (
FfxDenoiserContext * context,
const FfxDenoiserShadowsDispatchDescription * dispatchDescription
)
Dispatches work to the FidelityFX Denoiser context.
Parameters:
context |
A pointer to a |
dispatchDescription |
A pointer to a |
Return values:
FFX_OK |
The operation completed successfully. |
FFX_ERROR_CODE_NULL_POINTER |
The operation failed because either |
FFX_ERROR_BACKEND_API_ERROR |
The operation failed because of an error returned from the backend. |
ffxDenoiserContextDispatchReflections
FFX_API FfxErrorCode ffxDenoiserContextDispatchReflections (
FfxDenoiserContext * context,
const FfxDenoiserReflectionsDispatchDescription * dispatchDescription
)
Dispatches work to the FidelityFX Denoiser context.
Parameters:
context |
A pointer to a |
dispatchDescription |
A pointer to a |
Return values:
FFX_OK |
The operation completed successfully. |
FFX_ERROR_CODE_NULL_POINTER |
The operation failed because either |
FFX_ERROR_BACKEND_API_ERROR |
The operation failed because of an error returned from the backend. |
ffxDenoiserContextDestroy
FFX_API FfxErrorCode ffxDenoiserContextDestroy (FfxDenoiserContext * context)
Destroy the FidelityFX Denoiser context.
Parameters:
context |
A pointer to a |
Return values:
FFX_OK |
The operation completed successfully. |
FFX_ERROR_CODE_NULL_POINTER |
The operation failed because either |
ffxDenoiserGetEffectVersion
FFX_API FfxVersionNumber ffxDenoiserGetEffectVersion ()
Queries the effect version number.
Returns:
The SDK version the effect was built with.
Macros
FFX_DENOISER_CONTEXT_COUNT
FidelityFX denoiser context count.
Defines the number of internal effect contexts required by the denoiser
FFX_DENOISER_VERSION_MAJOR
FidelityFX Denoiser major version.
FFX_DENOISER_VERSION_MINOR
FidelityFX Denoiser minor version.
FFX_DENOISER_VERSION_PATCH
FidelityFX Denoiser patch version.