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

Functions

XESS_API xess_result_t xessD3D12GetResourcesToDump (xess_context_handle_t hContext, xess_resources_to_dump_t **pResourcesToDump)
 Query XeSS model to retrieve internal resources marked for dumping for further debug and inspection.
XESS_API xess_result_t xessD3D12GetProfilingData (xess_context_handle_t hContext, xess_profiling_data_t **pProfilingData)
 Query XeSS model performance data for past executions. This function is provided for backwards compatibility with previous XeSS versions and and it's currently deprecated. Same functionality is provided by xessGetProfilingData function from xess_debug.h. To enable performance collection, context must be initialized with XESS_DEBUG_ENABLE_PROFILING flag added to xess_d3d12_init_params_t::initFlags. If profiling is enabled, user must poll for profiling data after executing one or more command lists, otherwise implementation will keep growing internal CPU buffers to accommodate all profiling data available. Due to async nature of execution on GPU, data may not be available after submitting command lists to device queue. It is advised to check any_profiling_data_in_flight flag in case all workloads has been submitted, but profiling data for some frames is still not available. Data pointed to by pProfilingData item(s) belongs to context instance and is valid until next call to xessD3D12GetProfilingData or xessGetProfilingData for owning context.

Detailed Description

Function Documentation

◆ xessD3D12GetProfilingData()

XESS_API xess_result_t xessD3D12GetProfilingData ( xess_context_handle_t hContext,
xess_profiling_data_t ** pProfilingData )

Query XeSS model performance data for past executions. This function is provided for backwards compatibility with previous XeSS versions and and it's currently deprecated. Same functionality is provided by xessGetProfilingData function from xess_debug.h. To enable performance collection, context must be initialized with XESS_DEBUG_ENABLE_PROFILING flag added to xess_d3d12_init_params_t::initFlags. If profiling is enabled, user must poll for profiling data after executing one or more command lists, otherwise implementation will keep growing internal CPU buffers to accommodate all profiling data available. Due to async nature of execution on GPU, data may not be available after submitting command lists to device queue. It is advised to check any_profiling_data_in_flight flag in case all workloads has been submitted, but profiling data for some frames is still not available. Data pointed to by pProfilingData item(s) belongs to context instance and is valid until next call to xessD3D12GetProfilingData or xessGetProfilingData for owning context.

Parameters
hContextThe XeSS context handle.
pProfilingDatapointer to profiling data structure to be filled by implementation.
Returns
XeSS return status code.

◆ xessD3D12GetResourcesToDump()

XESS_API xess_result_t xessD3D12GetResourcesToDump ( xess_context_handle_t hContext,
xess_resources_to_dump_t ** pResourcesToDump )

Query XeSS model to retrieve internal resources marked for dumping for further debug and inspection.

Parameters
hContextThe XeSS context handle.
pResourcesToDumpPointer to user-provided pointer to structure to be filled with debug resource array, their names and recommended dumping parameters. pResourcesToDump must not be null, In case of failure (xess_result_t is not equal to XESS_RESULT_SUCCESS) **pResourcesToDump contents is undefined and must not be used. In case of success, *pResourcesToDump may still be null, if no internal resources were added to dumping queue. Build configuration for certain implementations may have dumping functionality compiled-out and XESS_RESULT_ERROR_NOT_IMPLEMENTED return code.
Returns
XeSS return status code.