XeSS-FG SDK API Reference Guide 1.3.1
Loading...
Searching...
No Matches
xefg_swapchain.h File Reference
#include <limits.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  _xefg_swapchain_version_t
 XeSS-FG Swap Chain version. More...
struct  _xefg_swapchain_2d_t
 2D variable. More...
struct  _xefg_swapchain_frame_constant_data_t
 Contains all constants associated with a frame. More...
struct  _xefg_swapchain_properties_t
 Properties for internal XeSS-FG Swap Chain resources. More...
struct  _xefg_swapchain_present_status_t
 Contains status data for the present. More...

Macros

#define XEFG_SWAPCHAIN_API   __attribute__((visibility("default")))
#define XEFG_SWAPCHAIN_PRAGMA(x)
#define XEFG_SWAPCHAIN_PACK_B_X(x)
#define XEFG_SWAPCHAIN_PACK_E()
#define XEFG_SWAPCHAIN_PACK_B()
#define XEFG_SWAPCHAIN_CAT_IMPL(a, b)
#define XEFG_SWAPCHAIN_CAT(a, b)
#define XEFG_SWAPCHAIN_STATIC_ASSERT(cond)
#define XEFG_SWAPCHAIN_USE_MAX_SUPPORTED_INTERPOLATED_FRAMES   UINT32_MAX
 Use maximum supported number of interpolated frames.

Typedefs

typedef struct _xefg_swapchain_handle_t * xefg_swapchain_handle_t
typedef enum _xefg_swapchain_resource_validity_t xefg_swapchain_resource_validity_t
 Informs the library about the lifetime of the resource being provided. The library will take appropriate action based on this value to either make a copy of the resource or store a reference to it.
typedef enum _xefg_swapchain_init_flags_t xefg_swapchain_init_flags_t
 XeSS-FG Swap Chain initialization flags.
typedef enum _xefg_swapchain_resource_type_t xefg_swapchain_resource_type_t
 XeSS-FG Swap Chain resources type.
typedef struct _xefg_swapchain_version_t xefg_swapchain_version_t
 XeSS-FG Swap Chain version.
typedef struct _xefg_swapchain_2d_t xefg_swapchain_2d_t
 2D variable.
typedef struct _xefg_swapchain_frame_constant_data_t xefg_swapchain_frame_constant_data_t
 Contains all constants associated with a frame.
typedef struct _xefg_swapchain_properties_t xefg_swapchain_properties_t
 Properties for internal XeSS-FG Swap Chain resources.
typedef enum _xefg_swapchain_result_t xefg_swapchain_result_t
 XeSS-FG Swap Chain return codes.
typedef enum _xefg_swapchain_logging_level_t xefg_swapchain_logging_level_t
 XeSS-FG Swap Chain logging level.
typedef enum _xefg_swapchain_ui_mode_t xefg_swapchain_ui_mode_t
 XeSS-FG UI composition mode.
typedef struct _xefg_swapchain_present_status_t xefg_swapchain_present_status_t
 Contains status data for the present.
typedef void(* xefg_swapchain_app_log_callback_t) (const char *message, xefg_swapchain_logging_level_t loggingLevel, void *userData)

Enumerations

enum  _xefg_swapchain_resource_validity_t { XEFG_SWAPCHAIN_RV_UNTIL_NEXT_PRESENT = 0 , XEFG_SWAPCHAIN_RV_ONLY_NOW , XEFG_SWAPCHAIN_RV_COUNT }
 Informs the library about the lifetime of the resource being provided. The library will take appropriate action based on this value to either make a copy of the resource or store a reference to it. More...
enum  _xefg_swapchain_init_flags_t {
  XEFG_SWAPCHAIN_INIT_FLAG_NONE = 0 , XEFG_SWAPCHAIN_INIT_FLAG_INVERTED_DEPTH = 1 << 0 , XEFG_SWAPCHAIN_INIT_FLAG_EXTERNAL_DESCRIPTOR_HEAP = 1 << 1 , XEFG_SWAPCHAIN_INIT_FLAG_HIGH_RES_MV = 1 << 2 ,
  XEFG_SWAPCHAIN_INIT_FLAG_USE_NDC_VELOCITY = 1 << 3 , XEFG_SWAPCHAIN_INIT_FLAG_JITTERED_MV = 1 << 4 , XEFG_SWAPCHAIN_INIT_FLAG_UITEXTURE_NOT_PREMUL_ALPHA = 1 << 5
}
 XeSS-FG Swap Chain initialization flags. More...
enum  _xefg_swapchain_resource_type_t {
  XEFG_SWAPCHAIN_RES_HUDLESS_COLOR = 0 , XEFG_SWAPCHAIN_RES_DEPTH , XEFG_SWAPCHAIN_RES_MOTION_VECTOR , XEFG_SWAPCHAIN_RES_UI ,
  XEFG_SWAPCHAIN_RES_BACKBUFFER , XEFG_SWAPCHAIN_RES_COUNT
}
 XeSS-FG Swap Chain resources type. More...
enum  _xefg_swapchain_result_t {
  XEFG_SWAPCHAIN_RESULT_WARNING_OLD_DRIVER = 2 , XEFG_SWAPCHAIN_RESULT_WARNING_TOO_FEW_FRAMES = 3 , XEFG_SWAPCHAIN_RESULT_WARNING_FRAMES_ID_MISMATCH = 4 , XEFG_SWAPCHAIN_RESULT_WARNING_MISSING_PRESENT_STATUS = 5 ,
  XEFG_SWAPCHAIN_RESULT_WARNING_RESOURCE_SIZES_MISMATCH = 6 , XEFG_SWAPCHAIN_RESULT_SUCCESS = 0 , XEFG_SWAPCHAIN_RESULT_ERROR_UNSUPPORTED_DEVICE = -1 , XEFG_SWAPCHAIN_RESULT_ERROR_UNSUPPORTED_DRIVER = -2 ,
  XEFG_SWAPCHAIN_RESULT_ERROR_UNINITIALIZED = -3 , XEFG_SWAPCHAIN_RESULT_ERROR_INVALID_ARGUMENT = -4 , XEFG_SWAPCHAIN_RESULT_ERROR_DEVICE_OUT_OF_MEMORY = -5 , XEFG_SWAPCHAIN_RESULT_ERROR_DEVICE = -6 ,
  XEFG_SWAPCHAIN_RESULT_ERROR_NOT_IMPLEMENTED = -7 , XEFG_SWAPCHAIN_RESULT_ERROR_INVALID_CONTEXT = -8 , XEFG_SWAPCHAIN_RESULT_ERROR_OPERATION_IN_PROGRESS = -9 , XEFG_SWAPCHAIN_RESULT_ERROR_UNSUPPORTED = -10 ,
  XEFG_SWAPCHAIN_RESULT_ERROR_CANT_LOAD_LIBRARY = -11 , XEFG_SWAPCHAIN_RESULT_ERROR_MISMATCH_INPUT_RESOURCES = -12 , XEFG_SWAPCHAIN_RESULT_ERROR_INCORRECT_OUTPUT_RESOURCES = -13 , XEFG_SWAPCHAIN_RESULT_ERROR_INCORRECT_INPUT_RESOURCES = -14 ,
  XEFG_SWAPCHAIN_RESULT_ERROR_LATENCY_REDUCTION_UNSUPPORTED = -15 , XEFG_SWAPCHAIN_RESULT_ERROR_LATENCY_REDUCTION_FUNCTION_MISSING = -16 , XEFG_SWAPCHAIN_RESULT_ERROR_HRESULT_FAILURE = -17 , XEFG_SWAPCHAIN_RESULT_ERROR_DXGI_INVALID_CALL = -18 ,
  XEFG_SWAPCHAIN_RESULT_ERROR_POINTER_STILL_IN_USE = -19 , XEFG_SWAPCHAIN_RESULT_ERROR_INVALID_DESCRIPTOR_HEAP = -20 , XEFG_SWAPCHAIN_RESULT_ERROR_WRONG_CALL_ORDER = -21 , XEFG_SWAPCHAIN_RESULT_ERROR_UNKNOWN = -1000
}
 XeSS-FG Swap Chain return codes. More...
enum  _xefg_swapchain_logging_level_t { XEFG_SWAPCHAIN_LOGGING_LEVEL_DEBUG = 0 , XEFG_SWAPCHAIN_LOGGING_LEVEL_INFO = 1 , XEFG_SWAPCHAIN_LOGGING_LEVEL_WARNING = 2 , XEFG_SWAPCHAIN_LOGGING_LEVEL_ERROR = 3 }
 XeSS-FG Swap Chain logging level. More...
enum  _xefg_swapchain_ui_mode_t {
  XEFG_SWAPCHAIN_UI_MODE_AUTO = 0 , XEFG_SWAPCHAIN_UI_MODE_NONE = 1 , XEFG_SWAPCHAIN_UI_MODE_BACKBUFFER_UITEXTURE = 2 , XEFG_SWAPCHAIN_UI_MODE_HUDLESS_UITEXTURE = 3 ,
  XEFG_SWAPCHAIN_UI_MODE_BACKBUFFER_HUDLESS = 4 , XEFG_SWAPCHAIN_UI_MODE_BACKBUFFER_HUDLESS_UITEXTURE = 5
}
 XeSS-FG UI composition mode. More...
enum  xefg_swapchain_ui_composition_state_t { XEFG_SWAPCHAIN_UI_COMPOSITION_STATE_DISABLED , XEFG_SWAPCHAIN_UI_COMPOSITION_STATE_ENABLED }
 Controls whether UI composition is enabled or disabled. More...

Functions

XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainGetVersion (xefg_swapchain_version_t *pVersion)
 Gets the XeSS-FG Swap Chain version. This is baked into the XeSS-FG Swap Chain SDK release.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainGetProperties (xefg_swapchain_handle_t hSwapChain, xefg_swapchain_properties_t *pProperties)
 Retrieves various XeSS-FG Swap Chain properties.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainTagFrameConstants (xefg_swapchain_handle_t hSwapChain, uint32_t presentId, const xefg_swapchain_frame_constant_data_t *pConstants)
 Informs the XeSS-FG swap chain library of the frame constants used to generate a frame that will be presented.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainSetEnabled (xefg_swapchain_handle_t hSwapChain, uint32_t enable)
 Enables or disables the generation and presentation of interpolated frames by the XeSS-FG swap chain library.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainSetPresentId (xefg_swapchain_handle_t hSwapChain, uint32_t presentId)
 Informs the XeSS-FG swap chain library of the unique identifier of the next frame to be presented. This allows the application to provide to the swap chain library frames data out-of-order with regard to the presentation.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainGetLastPresentStatus (xefg_swapchain_handle_t hSwapChain, xefg_swapchain_present_status_t *pPresentStatus)
 This function allows you to retrieve status information from the last present.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainSetLoggingCallback (xefg_swapchain_handle_t hSwapChain, xefg_swapchain_logging_level_t loggingLevel, xefg_swapchain_app_log_callback_t loggingCallback, void *userData)
 Sets logging callback.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainDestroy (xefg_swapchain_handle_t hSwapChain)
 Destroys a XeSS-FG Swap Chain context data. DXGI swap chain object will be released as soon as reference count reaches 0, so it's recommended to release all outstanding references before calling this function.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainSetLatencyReduction (xefg_swapchain_handle_t hSwapChain, void *hXeLLContext)
 Sets XeLL context for latency reduction.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainSetSceneChangeThreshold (xefg_swapchain_handle_t hSwapChain, float threshold)
 Sets scene change detection threshold.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainGetPipelineBuildStatus (xefg_swapchain_handle_t hSwapChain)
 Returns current state of the pipeline build.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainSetNumInterpolatedFrames (xefg_swapchain_handle_t hSwapChain, uint32_t numInterpolatedFrames)
 Adjust the number of interpolated frames after initialization.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainSetUiCompositionState (xefg_swapchain_handle_t hSwapChain, xefg_swapchain_ui_composition_state_t state)
 Enable or disable UI composition.
 XEFG_SWAPCHAIN_STATIC_ASSERT (sizeof(xefg_swapchain_resource_validity_t)==4)
 XEFG_SWAPCHAIN_STATIC_ASSERT (sizeof(xefg_swapchain_result_t)==4)
 XEFG_SWAPCHAIN_STATIC_ASSERT (sizeof(xefg_swapchain_init_flags_t)==4)
 XEFG_SWAPCHAIN_STATIC_ASSERT (sizeof(xefg_swapchain_logging_level_t)==4)
 XEFG_SWAPCHAIN_STATIC_ASSERT (sizeof(xefg_swapchain_resource_type_t)==4)
 XEFG_SWAPCHAIN_STATIC_ASSERT (sizeof(xefg_swapchain_ui_mode_t)==4)

Macro Definition Documentation

◆ XEFG_SWAPCHAIN_API

#define XEFG_SWAPCHAIN_API   __attribute__((visibility("default")))

Definition at line 25 of file xefg_swapchain.h.

◆ XEFG_SWAPCHAIN_CAT

#define XEFG_SWAPCHAIN_CAT ( a,
b )
Value:
#define XEFG_SWAPCHAIN_CAT_IMPL(a, b)

Definition at line 38 of file xefg_swapchain.h.

◆ XEFG_SWAPCHAIN_CAT_IMPL

#define XEFG_SWAPCHAIN_CAT_IMPL ( a,
b )
Value:
a##b

Definition at line 37 of file xefg_swapchain.h.

◆ XEFG_SWAPCHAIN_PACK_B

#define XEFG_SWAPCHAIN_PACK_B ( )
Value:
#define XEFG_SWAPCHAIN_PACK_B_X(x)

Definition at line 35 of file xefg_swapchain.h.

◆ XEFG_SWAPCHAIN_PACK_B_X

#define XEFG_SWAPCHAIN_PACK_B_X ( x)
Value:
XEFG_SWAPCHAIN_PRAGMA(pack(push, x))
#define XEFG_SWAPCHAIN_PRAGMA(x)

Definition at line 33 of file xefg_swapchain.h.

◆ XEFG_SWAPCHAIN_PACK_E

#define XEFG_SWAPCHAIN_PACK_E ( )
Value:

Definition at line 34 of file xefg_swapchain.h.

◆ XEFG_SWAPCHAIN_PRAGMA

#define XEFG_SWAPCHAIN_PRAGMA ( x)
Value:
_Pragma(#x)

Definition at line 29 of file xefg_swapchain.h.

◆ XEFG_SWAPCHAIN_STATIC_ASSERT

#define XEFG_SWAPCHAIN_STATIC_ASSERT ( cond)
Value:
typedef int XEFG_SWAPCHAIN_CAT(XEFG_SWAPCHAIN_STATIC_ASSERT_IMPL, __COUNTER__)[(cond) ? 1 : -1]
#define XEFG_SWAPCHAIN_CAT(a, b)

Definition at line 39 of file xefg_swapchain.h.

◆ XEFG_SWAPCHAIN_USE_MAX_SUPPORTED_INTERPOLATED_FRAMES

#define XEFG_SWAPCHAIN_USE_MAX_SUPPORTED_INTERPOLATED_FRAMES   UINT32_MAX

Use maximum supported number of interpolated frames.

Use this constant during XeSS-FG swap chain initialization to set number of interpolated frames to the maximum supported value.

The actual value can be queried later using xefgSwapChainGetProperties or by retrieving back the initialization parameters.

See also
XeSS-FG Swap Chain D3D12 API exports

Definition at line 56 of file xefg_swapchain.h.

Typedef Documentation

◆ xefg_swapchain_2d_t

2D variable.

◆ xefg_swapchain_app_log_callback_t

typedef void(* xefg_swapchain_app_log_callback_t) (const char *message, xefg_swapchain_logging_level_t loggingLevel, void *userData)

A logging callback provided by the application. This callback can be called from other threads. Message pointer is only valid inside the function and may be invalid right after the return call. Message is a null-terminated utf-8 string. Pointer to userData must remain valid until the call to xefgSwapChainDestroy returns.

Definition at line 317 of file xefg_swapchain.h.

◆ xefg_swapchain_frame_constant_data_t

Contains all constants associated with a frame.

◆ xefg_swapchain_handle_t

typedef struct _xefg_swapchain_handle_t* xefg_swapchain_handle_t

Definition at line 62 of file xefg_swapchain.h.

◆ xefg_swapchain_init_flags_t

XeSS-FG Swap Chain initialization flags.

◆ xefg_swapchain_logging_level_t

XeSS-FG Swap Chain logging level.

◆ xefg_swapchain_present_status_t

Contains status data for the present.

◆ xefg_swapchain_properties_t

Properties for internal XeSS-FG Swap Chain resources.

◆ xefg_swapchain_resource_type_t

XeSS-FG Swap Chain resources type.

◆ xefg_swapchain_resource_validity_t

Informs the library about the lifetime of the resource being provided. The library will take appropriate action based on this value to either make a copy of the resource or store a reference to it.

◆ xefg_swapchain_result_t

XeSS-FG Swap Chain return codes.

◆ xefg_swapchain_ui_mode_t

XeSS-FG UI composition mode.

XeSS-FG can either interpolate UI (default) or compose a UI texture as-is on top of the interpolated frames. The application can provide the UI texture directly or rely on XeSS-FG to extract the texture from other available resources.

UI composition can be enabled or disabled by changing the composition state. When UI composition is enabled, the UI mode determines which composition method is used.

See also
xefgSwapChainSetUiCompositionState for enabling or disabling UI composition.

◆ xefg_swapchain_version_t

XeSS-FG Swap Chain version.

XeSS-FG Swap Chain uses major.minor.patch version format and Numeric 90+ scheme for development stage builds.

Enumeration Type Documentation

◆ _xefg_swapchain_init_flags_t

XeSS-FG Swap Chain initialization flags.

Enumerator
XEFG_SWAPCHAIN_INIT_FLAG_NONE 

No flags are enabled.

XEFG_SWAPCHAIN_INIT_FLAG_INVERTED_DEPTH 

Use inverted (increased precision) depth encoding.

XEFG_SWAPCHAIN_INIT_FLAG_EXTERNAL_DESCRIPTOR_HEAP 

Use external descriptor heap.

XEFG_SWAPCHAIN_INIT_FLAG_HIGH_RES_MV 

Deprecated. Setting this flag has no effect.

XEFG_SWAPCHAIN_INIT_FLAG_USE_NDC_VELOCITY 

Use velocity in normalized device coordinates (NDC).

XEFG_SWAPCHAIN_INIT_FLAG_JITTERED_MV 

Remove jitter from input velocity.

XEFG_SWAPCHAIN_INIT_FLAG_UITEXTURE_NOT_PREMUL_ALPHA 

UI texture rgb values are not premultiplied by its alpha value

Definition at line 82 of file xefg_swapchain.h.

◆ _xefg_swapchain_logging_level_t

XeSS-FG Swap Chain logging level.

Enumerator
XEFG_SWAPCHAIN_LOGGING_LEVEL_DEBUG 
XEFG_SWAPCHAIN_LOGGING_LEVEL_INFO 
XEFG_SWAPCHAIN_LOGGING_LEVEL_WARNING 
XEFG_SWAPCHAIN_LOGGING_LEVEL_ERROR 

Definition at line 260 of file xefg_swapchain.h.

◆ _xefg_swapchain_resource_type_t

XeSS-FG Swap Chain resources type.

Enumerator
XEFG_SWAPCHAIN_RES_HUDLESS_COLOR 
XEFG_SWAPCHAIN_RES_DEPTH 
XEFG_SWAPCHAIN_RES_MOTION_VECTOR 
XEFG_SWAPCHAIN_RES_UI 
XEFG_SWAPCHAIN_RES_BACKBUFFER 
XEFG_SWAPCHAIN_RES_COUNT 

Definition at line 103 of file xefg_swapchain.h.

◆ _xefg_swapchain_resource_validity_t

Informs the library about the lifetime of the resource being provided. The library will take appropriate action based on this value to either make a copy of the resource or store a reference to it.

Enumerator
XEFG_SWAPCHAIN_RV_UNTIL_NEXT_PRESENT 

Resource is valid until the next present.

XEFG_SWAPCHAIN_RV_ONLY_NOW 

Resource is only valid now.

XEFG_SWAPCHAIN_RV_COUNT 

Definition at line 70 of file xefg_swapchain.h.

◆ _xefg_swapchain_result_t

XeSS-FG Swap Chain return codes.

Enumerator
XEFG_SWAPCHAIN_RESULT_WARNING_OLD_DRIVER 

An old or outdated driver.

XEFG_SWAPCHAIN_RESULT_WARNING_TOO_FEW_FRAMES 

Warning. Frame ID should be over 0.

XEFG_SWAPCHAIN_RESULT_WARNING_FRAMES_ID_MISMATCH 

Warning. Data for interpolation came in wrong order.

XEFG_SWAPCHAIN_RESULT_WARNING_MISSING_PRESENT_STATUS 

Warning. There is no present status for last present.

XEFG_SWAPCHAIN_RESULT_WARNING_RESOURCE_SIZES_MISMATCH 

Warning. Resource sizes for the interpolation doesn't match between previous and next frames. Interpolation skipped.

XEFG_SWAPCHAIN_RESULT_SUCCESS 

Operation was successful.

XEFG_SWAPCHAIN_RESULT_ERROR_UNSUPPORTED_DEVICE 

Operation not supported on the GPU.

XEFG_SWAPCHAIN_RESULT_ERROR_UNSUPPORTED_DRIVER 

An unsupported driver.

XEFG_SWAPCHAIN_RESULT_ERROR_UNINITIALIZED 

Execute called without initialization.

XEFG_SWAPCHAIN_RESULT_ERROR_INVALID_ARGUMENT 

Invalid argument were provided to the API call.

XEFG_SWAPCHAIN_RESULT_ERROR_DEVICE_OUT_OF_MEMORY 

Not enough available GPU memory.

XEFG_SWAPCHAIN_RESULT_ERROR_DEVICE 

Device function such as resource or descriptor creation.

XEFG_SWAPCHAIN_RESULT_ERROR_NOT_IMPLEMENTED 

The function is not implemented.

XEFG_SWAPCHAIN_RESULT_ERROR_INVALID_CONTEXT 

Invalid context.

XEFG_SWAPCHAIN_RESULT_ERROR_OPERATION_IN_PROGRESS 

Operation not finished yet.

XEFG_SWAPCHAIN_RESULT_ERROR_UNSUPPORTED 

Operation not supported in current configuration.

XEFG_SWAPCHAIN_RESULT_ERROR_CANT_LOAD_LIBRARY 

The library cannot be loaded.

XEFG_SWAPCHAIN_RESULT_ERROR_MISMATCH_INPUT_RESOURCES 

Input resources does not meet requirements based on UI Mode.

XEFG_SWAPCHAIN_RESULT_ERROR_INCORRECT_OUTPUT_RESOURCES 

Output resources does not meet requirements.

XEFG_SWAPCHAIN_RESULT_ERROR_INCORRECT_INPUT_RESOURCES 

Input is insufficient to evaluate interpolation.

XEFG_SWAPCHAIN_RESULT_ERROR_LATENCY_REDUCTION_UNSUPPORTED 

Requirements regarding XeLL Latency Reduction are not met.

XEFG_SWAPCHAIN_RESULT_ERROR_LATENCY_REDUCTION_FUNCTION_MISSING 

XeLL library does not contains required functions.

XEFG_SWAPCHAIN_RESULT_ERROR_HRESULT_FAILURE 

One of the Windows functions has failed. For details, see the logs or debug layer.

XEFG_SWAPCHAIN_RESULT_ERROR_DXGI_INVALID_CALL 

DXGI call failed with invalid call error.

XEFG_SWAPCHAIN_RESULT_ERROR_POINTER_STILL_IN_USE 

XeFG SwapChain pointer is still in use during destroy.

XEFG_SWAPCHAIN_RESULT_ERROR_INVALID_DESCRIPTOR_HEAP 

Invalid or missing descriptor heap.

XEFG_SWAPCHAIN_RESULT_ERROR_WRONG_CALL_ORDER 

Call to function done in invalid order.

XEFG_SWAPCHAIN_RESULT_ERROR_UNKNOWN 

Unknown internal failure

Definition at line 195 of file xefg_swapchain.h.

◆ _xefg_swapchain_ui_mode_t

XeSS-FG UI composition mode.

XeSS-FG can either interpolate UI (default) or compose a UI texture as-is on top of the interpolated frames. The application can provide the UI texture directly or rely on XeSS-FG to extract the texture from other available resources.

UI composition can be enabled or disabled by changing the composition state. When UI composition is enabled, the UI mode determines which composition method is used.

See also
xefgSwapChainSetUiCompositionState for enabling or disabling UI composition.
Enumerator
XEFG_SWAPCHAIN_UI_MODE_AUTO 

Determine UI composition mode automatically, based on provided inputs: hudless color and UI texture.

XEFG_SWAPCHAIN_UI_MODE_NONE 

Interpolate back buffer, without any UI composition.

XEFG_SWAPCHAIN_UI_MODE_BACKBUFFER_UITEXTURE 

Interpolate back buffer, refine UI using UI texture + alpha.

XEFG_SWAPCHAIN_UI_MODE_HUDLESS_UITEXTURE 

Interpolate hudless color, blend UI from UI texture + alpha.

XEFG_SWAPCHAIN_UI_MODE_BACKBUFFER_HUDLESS 

Interpolate hudless color, extract UI from backbuffer.

XEFG_SWAPCHAIN_UI_MODE_BACKBUFFER_HUDLESS_UITEXTURE 

Interpolate hudless color, blend UI from UI texture + alpha and refine it by extracting from back buffer.

Definition at line 280 of file xefg_swapchain.h.

Function Documentation

◆ XEFG_SWAPCHAIN_STATIC_ASSERT() [1/6]

XEFG_SWAPCHAIN_STATIC_ASSERT ( sizeof(xefg_swapchain_init_flags_t) = =4)

◆ XEFG_SWAPCHAIN_STATIC_ASSERT() [2/6]

XEFG_SWAPCHAIN_STATIC_ASSERT ( sizeof(xefg_swapchain_logging_level_t) = =4)

◆ XEFG_SWAPCHAIN_STATIC_ASSERT() [3/6]

XEFG_SWAPCHAIN_STATIC_ASSERT ( sizeof(xefg_swapchain_resource_type_t) = =4)

◆ XEFG_SWAPCHAIN_STATIC_ASSERT() [4/6]

XEFG_SWAPCHAIN_STATIC_ASSERT ( sizeof(xefg_swapchain_resource_validity_t) = =4)

◆ XEFG_SWAPCHAIN_STATIC_ASSERT() [5/6]

XEFG_SWAPCHAIN_STATIC_ASSERT ( sizeof(xefg_swapchain_result_t) = =4)

◆ XEFG_SWAPCHAIN_STATIC_ASSERT() [6/6]

XEFG_SWAPCHAIN_STATIC_ASSERT ( sizeof(xefg_swapchain_ui_mode_t) = =4)