![]() |
XeSS-SR SDK API Reference Guide 2.0.2
|
Functions | |
| XESS_API xess_result_t | xessD3D12CreateContext (ID3D12Device *pDevice, xess_context_handle_t *phContext) |
| Create an XeSS D3D12 context. | |
| XESS_API xess_result_t | xessD3D12BuildPipelines (xess_context_handle_t hContext, ID3D12PipelineLibrary *pPipelineLibrary, bool blocking, uint32_t initFlags) |
Initiates pipeline build process This function can only be called between xessD3D12CreateContext and xessD3D12Init This call initiates build of DX12 pipelines and kernel compilation This call can be blocking (if blocking set to true) or non-blocking. In case of non-blocking call library will wait for pipeline build on call to xessD3D12Init If pPipelineLibrary passed to this call - same pipeline library must be passed to xessD3D12Init. | |
| XESS_API xess_result_t | xessD3D12Init (xess_context_handle_t hContext, const xess_d3d12_init_params_t *pInitParams) |
| Initialize XeSS D3D12. This is a blocking call that initializes XeSS and triggers internal resources allocation and JIT for the XeSS kernels. The user must ensure that any pending command lists are completed before re-initialization. When During initialization, XeSS can create staging buffers and copy queues to upload internal data. These will be destroyed at the end of initialization. | |
| XESS_API xess_result_t | xessD3D12GetInitParams (xess_context_handle_t hContext, xess_d3d12_init_params_t *pInitParams) |
| Get XeSS D3D12 initialization parameters. | |
| XESS_API xess_result_t | xessD3D12Execute (xess_context_handle_t hContext, ID3D12GraphicsCommandList *pCommandList, const xess_d3d12_execute_params_t *pExecParams) |
| Record XeSS upscaling commands into the command list. | |
| XESS_API xess_result_t xessD3D12BuildPipelines | ( | xess_context_handle_t | hContext, |
| ID3D12PipelineLibrary * | pPipelineLibrary, | ||
| bool | blocking, | ||
| uint32_t | initFlags ) |
Initiates pipeline build process This function can only be called between xessD3D12CreateContext and xessD3D12Init This call initiates build of DX12 pipelines and kernel compilation This call can be blocking (if blocking set to true) or non-blocking. In case of non-blocking call library will wait for pipeline build on call to xessD3D12Init If pPipelineLibrary passed to this call - same pipeline library must be passed to xessD3D12Init.
| hContext | The XeSS context handle. |
| pPipelineLibrary | Optional pointer to pipeline library for pipeline caching. |
| blocking | Wait for kernel compilation and pipeline creation to finish or not |
| initFlags | Initialization flags. Must be identical to flags passed to xessD3D12Init |
| XESS_API xess_result_t xessD3D12CreateContext | ( | ID3D12Device * | pDevice, |
| xess_context_handle_t * | phContext ) |
Create an XeSS D3D12 context.
| pDevice | A D3D12 device created by the user. | |
| [out] | phContext | Returned xess context handle. |
| XESS_API xess_result_t xessD3D12Execute | ( | xess_context_handle_t | hContext, |
| ID3D12GraphicsCommandList * | pCommandList, | ||
| const xess_d3d12_execute_params_t * | pExecParams ) |
Record XeSS upscaling commands into the command list.
| hContext | The XeSS context handle. |
| pCommandList | The command list for XeSS commands. |
| pExecParams | Execution parameters. |
| XESS_API xess_result_t xessD3D12GetInitParams | ( | xess_context_handle_t | hContext, |
| xess_d3d12_init_params_t * | pInitParams ) |
Get XeSS D3D12 initialization parameters.
| hContext | The XeSS context handle. | |
| [out] | pInitParams | Returned initialization parameters. |
| XESS_API xess_result_t xessD3D12Init | ( | xess_context_handle_t | hContext, |
| const xess_d3d12_init_params_t * | pInitParams ) |
Initialize XeSS D3D12. This is a blocking call that initializes XeSS and triggers internal resources allocation and JIT for the XeSS kernels. The user must ensure that any pending command lists are completed before re-initialization. When During initialization, XeSS can create staging buffers and copy queues to upload internal data. These will be destroyed at the end of initialization.
| hContext | The XeSS context handle. |
| pInitParams | Initialization parameters. |