XeSS-SR SDK API Reference Guide 2.0.2
Loading...
Searching...
No Matches
XeSS D3D12 API exports

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.

Detailed Description

Function Documentation

◆ xessD3D12BuildPipelines()

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.

Parameters
hContextThe XeSS context handle.
pPipelineLibraryOptional pointer to pipeline library for pipeline caching.
blockingWait for kernel compilation and pipeline creation to finish or not
initFlagsInitialization flags. Must be identical to flags passed to xessD3D12Init

◆ xessD3D12CreateContext()

XESS_API xess_result_t xessD3D12CreateContext ( ID3D12Device * pDevice,
xess_context_handle_t * phContext )

Create an XeSS D3D12 context.

Parameters
pDeviceA D3D12 device created by the user.
[out]phContextReturned xess context handle.
Returns
XeSS return status code.

◆ xessD3D12Execute()

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.

Parameters
hContextThe XeSS context handle.
pCommandListThe command list for XeSS commands.
pExecParamsExecution parameters.
Returns
XeSS return status code.

◆ xessD3D12GetInitParams()

XESS_API xess_result_t xessD3D12GetInitParams ( xess_context_handle_t hContext,
xess_d3d12_init_params_t * pInitParams )

Get XeSS D3D12 initialization parameters.

Note
This function will return XESS_RESULT_ERROR_UNINITIALIZED if xessD3D12Init has not been called.
Parameters
hContextThe XeSS context handle.
[out]pInitParamsReturned initialization parameters.
Returns
XeSS return status code.

◆ 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.

Note
XeSS supports devices starting from D3D12_RESOURCE_HEAP_TIER_1, which means that buffers and textures can not live in the same resource heap.
Parameters
hContextThe XeSS context handle.
pInitParamsInitialization parameters.
Returns
XeSS return status code.