Utilities
Utility Macros used by the FidelityFX SDK.
Functions
Return type |
Description |
---|---|
uint8_t |
ffxCountBitsSet (uint32_t val)
Computes the number of bits set to 1 in a integer.
|
Macros
Detailed description
Utility Macros used by the FidelityFX SDK.
Global functions
ffxCountBitsSet
Computes the number of bits set to 1 in a integer.
Parameters:
val |
Integer mask. |
Returns:
Number of bits set to 1 in provided val.
Macros
FFX_ABSOLUTE
Helper macro to return the abs of an integer value.
FFX_ALIGN_UP
Helper macro to align an integer to the specified power of 2 boundary.
FFX_ARRAY_ELEMENTS
Helper macro to work out the number of elements in an array.
FFX_CONTAINS_FLAG
Helper macro to check if the specified key is set in a bitfield.
FFX_DIVIDE_ROUNDING_UP
Helper macro to compute the rounded-up integer division of two unsigned integers.
FFX_FORWARD_DECLARE
Helper macro to forward declare a structure.
FFX_IS_ALIGNED
Helper macro to check if a value is aligned.
FFX_MAKE_VERSION
Helper macro to create the version number.
Use this to specify no version.
FFX_MAXIMUM
Helper macro to return the maximum of two values.
FFX_MAXIMUM_PATH
The maximum length of a path that can be specified to the FidelityFX API.
FFX_MINIMUM
Helper macro to return the minimum of two values.
FFX_SAFE_FREE
Helper macro to do safe free on a pointer.
FFX_SIGN
Helper macro to return sign of a value.
FFX_STR
Helper macro to stri.gify a value.
FFX_UNUSED
Helper macro to avoid warnings about unused variables.