Uh oh!
There was an error while loading. Please reload this page.
forked from KhronosGroup/Vulkan-Loader
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_utils.h
More file actions
Latest commit
79 lines (67 loc) · 5.32 KB
/
Copy pathdebug_utils.h
File metadata and controls
79 lines (67 loc) · 5.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
* Copyright (c) 2015-2021 The Khronos Group Inc.
* Copyright (c) 2015-2021 Valve Corporation
* Copyright (c) 2015-2021 LunarG, Inc.
* Copyright (C) 2015-2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Author: Courtney Goeltzenleuchter <courtney@LunarG.com>
* Author: Jon Ashburn <jon@lunarg.com>
* Author: Mark Young <markyk@lunarg.com>
* Author: Charles Giessen <charles@lunarg.com>
*/
#pragma once
#include"loader_common.h"
// General utilities
VkResultadd_debug_extensions_to_ext_list(conststructloader_instance*inst, structloader_extension_list*ext_list);
voidcheck_for_enabled_debug_extensions(structloader_instance*ptr_instance, constVkInstanceCreateInfo*pCreateInfo);
booldebug_extensions_InstanceGpa(structloader_instance*ptr_instance, constchar*name, void**addr);
booldebug_utils_ReportFlagsToAnnotFlags(VkDebugReportFlagsEXTdr_flags, booldefault_flag_is_spec,
VkDebugUtilsMessageSeverityFlagBitsEXT*da_severity,
VkDebugUtilsMessageTypeFlagsEXT*da_type);
booldebug_utils_AnnotFlagsToReportFlags(VkDebugUtilsMessageSeverityFlagBitsEXTda_severity,
VkDebugUtilsMessageTypeFlagsEXTda_type, VkDebugReportFlagsEXT*dr_flags);
booldebug_utils_ReportObjectToAnnotObject(VkDebugReportObjectTypeEXTdr_object_type, uint64_tobject_handle,
VkDebugUtilsObjectNameInfoEXT*da_object_name_info);
booldebug_utils_AnnotObjectToDebugReportObject(constVkDebugUtilsObjectNameInfoEXT*da_object_name_info,
VkDebugReportObjectTypeEXT*dr_object_type, uint64_t*dr_object_handle);
voiddestroy_debug_callbacks_chain(structloader_instance*inst, constVkAllocationCallbacks*pAllocator);
// VK_EXT_debug_utils related items
VKAPI_ATTRVkResultVKAPI_CALLterminator_CreateDebugUtilsMessengerEXT(VkInstanceinstance,
constVkDebugUtilsMessengerCreateInfoEXT*pCreateInfo,
constVkAllocationCallbacks*pAllocator,
VkDebugUtilsMessengerEXT*pMessenger);
VKAPI_ATTRvoidVKAPI_CALLterminator_DestroyDebugUtilsMessengerEXT(VkInstanceinstance, VkDebugUtilsMessengerEXTmessenger,
constVkAllocationCallbacks*pAllocator);
VKAPI_ATTRvoidVKAPI_CALLterminator_SubmitDebugUtilsMessageEXT(VkInstanceinstance,
VkDebugUtilsMessageSeverityFlagBitsEXTmessageSeverity,
VkDebugUtilsMessageTypeFlagsEXTmessageTypes,
constVkDebugUtilsMessengerCallbackDataEXT*pCallbackData);
VkResultutil_CreateDebugUtilsMessengers(structloader_instance*inst, constvoid*pChain, constVkAllocationCallbacks*pAllocator);
VkBool32util_SubmitDebugUtilsMessageEXT(conststructloader_instance*inst, VkDebugUtilsMessageSeverityFlagBitsEXTmessageSeverity,
VkDebugUtilsMessageTypeFlagsEXTmessageTypes,
constVkDebugUtilsMessengerCallbackDataEXT*pCallbackData);
// VK_EXT_debug_report related items
VKAPI_ATTRVkResultVKAPI_CALLterminator_CreateDebugReportCallbackEXT(VkInstanceinstance,
constVkDebugReportCallbackCreateInfoEXT*pCreateInfo,
constVkAllocationCallbacks*pAllocator,
VkDebugReportCallbackEXT*pCallback);
VKAPI_ATTRvoidVKAPI_CALLterminator_DestroyDebugReportCallbackEXT(VkInstanceinstance, VkDebugReportCallbackEXTcallback,
constVkAllocationCallbacks*pAllocator);
VKAPI_ATTRvoidVKAPI_CALLterminator_DebugReportMessageEXT(VkInstanceinstance, VkDebugReportFlagsEXTflags,
VkDebugReportObjectTypeEXTobjType, uint64_tobject, size_tlocation,
int32_tmsgCode, constchar*pLayerPrefix, constchar*pMsg);
VkResultutil_CreateDebugReportCallbacks(structloader_instance*inst, constvoid*pChain, constVkAllocationCallbacks*pAllocator);
VkBool32util_DebugReportMessage(conststructloader_instance*inst, VkFlagsmsgFlags, VkDebugReportObjectTypeEXTobjectType,
uint64_tsrcObject, size_tlocation, int32_tmsgCode, constchar*pLayerPrefix, constchar*pMsg);