![]() |
XeSS-SR SDK API Reference Guide 2.0.2
|
Functions | |
| XESS_API xess_result_t | xessSelectNetworkModel (xess_context_handle_t hContext, xess_network_model_t network) |
| Select network to be used by XeSS. | |
| XESS_API xess_result_t | xessStartDump (xess_context_handle_t hContext, const xess_dump_parameters_t *dump_parameters) |
| Dumps sequence of frames to the provided folder. | |
| XESS_API xess_result_t | xessGetProfilingData (xess_context_handle_t hContext, xess_profiling_data_t **pProfilingData) |
| Query XeSS model performance data for past executions. To enable performance collection, context must be initialized with XESS_DEBUG_ENABLE_PROFILING flag added to xess_d3d12_init_params_t::initFlags or xess_vk_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. | |
| XESS_API xess_result_t xessGetProfilingData | ( | xess_context_handle_t | hContext, |
| xess_profiling_data_t ** | pProfilingData ) |
Query XeSS model performance data for past executions. To enable performance collection, context must be initialized with XESS_DEBUG_ENABLE_PROFILING flag added to xess_d3d12_init_params_t::initFlags or xess_vk_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.
| hContext | The XeSS context handle. |
| pProfilingData | pointer to profiling data structure to be filled by implementation. |
| XESS_API xess_result_t xessSelectNetworkModel | ( | xess_context_handle_t | hContext, |
| xess_network_model_t | network ) |
Select network to be used by XeSS.
Selects network model to use by XeSS. After call to this function - XeSS init function must be called
| XESS_API xess_result_t xessStartDump | ( | xess_context_handle_t | hContext, |
| const xess_dump_parameters_t * | dump_parameters ) |
Dumps sequence of frames to the provided folder.
Call to this function initiates a dump for selected elements. XeSS SDK uses RAM cache to reduce dump overhead. Application should provide reasonable value for frame_count frames (about 50 megs needed per cached frame). To enable several dumps per run application should provide correct frame_idx value. This value used as a start index for frame dumping. After call to this function - each call to xessD3D12Execute will result in new frame dumped to RAM cache. After frame_count frames application will be blocked on call to xessD3D12Execute in order to save cached frames to disk. This operation can take long time. Repetitive calls to this function can result in XESS_RESULT_ERROR_OPERATION_IN_PROGRESS which means that frame dump is in progress.
| hContext | XeSS context |
| dump_parameters | dump configuration |