![]() |
XeSS-FG SDK API Reference Guide 1.3.1
|
#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) |
| #define XEFG_SWAPCHAIN_API __attribute__((visibility("default"))) |
Definition at line 25 of file xefg_swapchain.h.
| #define XEFG_SWAPCHAIN_CAT | ( | a, | |
| b ) |
Definition at line 38 of file xefg_swapchain.h.
| #define XEFG_SWAPCHAIN_CAT_IMPL | ( | a, | |
| b ) |
Definition at line 37 of file xefg_swapchain.h.
| #define XEFG_SWAPCHAIN_PACK_B | ( | ) |
Definition at line 35 of file xefg_swapchain.h.
| #define XEFG_SWAPCHAIN_PACK_B_X | ( | x | ) |
Definition at line 33 of file xefg_swapchain.h.
| #define XEFG_SWAPCHAIN_PACK_E | ( | ) |
Definition at line 34 of file xefg_swapchain.h.
| #define XEFG_SWAPCHAIN_PRAGMA | ( | x | ) |
Definition at line 29 of file xefg_swapchain.h.
| #define XEFG_SWAPCHAIN_STATIC_ASSERT | ( | cond | ) |
Definition at line 39 of file xefg_swapchain.h.
| #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.
Definition at line 56 of file xefg_swapchain.h.
| typedef struct _xefg_swapchain_2d_t xefg_swapchain_2d_t |
2D variable.
| 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.
Contains all constants associated with a frame.
| typedef struct _xefg_swapchain_handle_t* xefg_swapchain_handle_t |
Definition at line 62 of file xefg_swapchain.h.
| typedef enum _xefg_swapchain_init_flags_t xefg_swapchain_init_flags_t |
XeSS-FG Swap Chain initialization flags.
XeSS-FG Swap Chain logging level.
| typedef struct _xefg_swapchain_present_status_t xefg_swapchain_present_status_t |
Contains status data for the present.
| typedef struct _xefg_swapchain_properties_t xefg_swapchain_properties_t |
Properties for internal XeSS-FG Swap Chain resources.
XeSS-FG Swap Chain resources type.
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_result_t xefg_swapchain_result_t |
XeSS-FG Swap Chain return codes.
| typedef enum _xefg_swapchain_ui_mode_t 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.
| typedef struct _xefg_swapchain_version_t 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.
XeSS-FG Swap Chain initialization flags.
Definition at line 82 of file xefg_swapchain.h.
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.
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.
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.
XeSS-FG Swap Chain return codes.
Definition at line 195 of file xefg_swapchain.h.
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.
Definition at line 280 of file xefg_swapchain.h.
| 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_resource_validity_t) | = =4 | ) |
| XEFG_SWAPCHAIN_STATIC_ASSERT | ( | sizeof(xefg_swapchain_result_t) | = =4 | ) |
| XEFG_SWAPCHAIN_STATIC_ASSERT | ( | sizeof(xefg_swapchain_ui_mode_t) | = =4 | ) |