XeSS-SR SDK API Reference Guide 2.0.2
Loading...
Searching...
No Matches
xess_vk_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_VK_DEBUG_H
17#define XESS_VK_DEBUG_H
18
19#include "xess_vk.h"
20#include "xess_debug.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
28{
29 VkImage image;
30 VkBuffer buffer;
31 VkFormat image_format;
32 uint64_t width;
33 uint32_t height;
34 VkImageLayout image_layout;
36 uint32_t image_depth;
39
42{
48 const char* const* resource_names;
49 /* Pointer to an internal array of suggested resource dump modes. Array length is `resource_count.`
50 * If as_tensor is 0 (FALSE), then it is suggested to dump resource as RGBA texture.*/
51 const uint32_t* as_tensor; // 0 = false
52 /* Pointer to an internal array of paddings to be used during resource dump. Array length is `resource_count`.
53 * Padding is assumed to be symmetrical across spatial dimensions and has same value for both borders in each dimension.*/
55 /* Pointer to an internal array of channel count for each resource. If resource dimension is "buffer" value is non zero,
56 * count is zero otherwise. Array length is `resource_count`.*/
57 const uint32_t* tensor_channel_count;
58 /* Pointer to an internal array of tensor width for each resource. Width must include padding on both sides.
59 * If resource dimension is "buffer" value is non zero, * count is zero otherwise. Array length is `resource_count`.*/
60 const uint32_t* tensor_width;
61 /* Pointer to an internal array of tensor width for each resource. Height must include padding on both sides.
62 * If resource dimension is "buffer" value is non zero, * count is zero otherwise. Array length is `resource_count`.*/
63 const uint32_t* tensor_height;
66
67
82
84
85#ifdef __cplusplus
86}
87#endif
88
89
90#endif // XESS_VK_DEBUG_H
XESS_API xess_result_t xessVKGetResourcesToDump(xess_context_handle_t hContext, xess_vk_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
_xess_vk_resource_to_dump_desc_t const * resources
const uint32_t * tensor_channel_count
#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_vk_resources_to_dump_t xess_vk_resources_to_dump_t
struct _xess_vk_resource_to_dump_desc_t xess_vk_resource_to_dump_desc_t