XeSS-SR SDK API Reference Guide 2.0.2
Loading...
Searching...
No Matches
xess_d3d12_debug.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2021 Intel Corporation
3 *
4 * This software and the related documents are Intel copyrighted materials, and
5 * your use of them is governed by the express license under which they were
6 * provided to you ("License"). Unless the License provides otherwise, you may
7 * not use, modify, copy, publish, distribute, disclose or transmit this
8 * software or the related documents without Intel's prior written permission.
9 *
10 * This software and the related documents are provided as is, with no express
11 * or implied warranties, other than those that are expressly stated in the
12 * License.
13 ******************************************************************************/
14
15
16#ifndef XESS_D3D12_DEBUG_H
17#define XESS_D3D12_DEBUG_H
18
19#include <d3d12.h>
20
21#include "xess.h"
22#include "xess_debug.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
29#ifndef XESS_D3D12_DEBUG_ENABLE_PROFILING
30#define XESS_D3D12_DEBUG_ENABLE_PROFILING XESS_DEBUG_ENABLE_PROFILING
31#endif
32
35{
39 ID3D12Resource* const* resources;
41 const char* const* resource_names;
42 /* Pointer to an internal array of suggested resource dump modes. Array length is `resource_count.`
43 * If as_tensor is 0 (FALSE), then it is suggested to dump resource as RGBA texture.*/
44 const uint32_t* as_tensor; // 0 = false
45 /* Pointer to an internal array of paddings to be used during resource dump. Array length is `resource_count`.
46 * Padding is assumed to be symmetrical across spatial dimensions and has same value for both borders in each dimension.*/
48 /* Pointer to an internal array of channel count for each resource. If resource dimension is "buffer" value is non zero,
49 * count is zero otherwise. Array length is `resource_count`.*/
50 const uint32_t* tensor_channel_count;
51 /* Pointer to an internal array of tensor width for each resource. Width must include padding on both sides.
52 * If resource dimension is "buffer" value is non zero, * count is zero otherwise. Array length is `resource_count`.*/
53 const uint32_t* tensor_width;
54 /* Pointer to an internal array of tensor width for each resource. Height must include padding on both sides.
55 * If resource dimension is "buffer" value is non zero, * count is zero otherwise. Array length is `resource_count`.*/
56 const uint32_t* tensor_height;
59
60
75
94
95
97
98#ifdef __cplusplus
99}
100#endif
101
102
103#endif // XESS_D3D12_H
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 compat...
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.
const uint32_t * tensor_width
const uint32_t * border_pixels_to_skip_count
const char *const * resource_names
const uint32_t * tensor_height
const uint32_t * tensor_channel_count
ID3D12Resource *const * resources
#define XESS_PACK_E()
Definition xess.h:38
enum _xess_result_t xess_result_t
XeSS return codes.
#define XESS_PACK_B()
Definition xess.h:39
#define XESS_API
Definition xess.h:29
struct _xess_context_handle_t * xess_context_handle_t
Definition xess.h:47
struct _xess_resources_to_dump_t xess_resources_to_dump_t
struct _xess_profiling_data_t xess_profiling_data_t