Go to the source code of this file.
◆ VK_FILELOG
#define VK_FILELOG |
( |
|
msg, |
|
|
|
... |
|
) |
| |
◆ debugUtilsCallback()
static VKAPI_ATTR VkBool32 VKAPI_CALL debugUtilsCallback |
( |
VkDebugUtilsMessageSeverityFlagBitsEXT |
msgSeverity, |
|
|
VkDebugUtilsMessageTypeFlagsEXT |
msgType, |
|
|
const VkDebugUtilsMessengerCallbackDataEXT * |
callbackData, |
|
|
void * |
userData |
|
) |
| |
|
static |
Definition at line 46 of file vk_validation.c.
53 case VK_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT:
57 case VK_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT:
61 case VK_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT:
64 assert(!
"Vulkan warning occured!");
69 assert(!
"Vulkan error occured!");
Referenced by QVk_CreateValidationLayers().
◆ msgToString()
static const char* msgToString |
( |
VkDebugUtilsMessageTypeFlagsEXT |
type | ) |
|
|
static |
Definition at line 31 of file vk_validation.c.
33 int g = (
type & VK_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT) != 0 ? 1 : 0;
34 int p = (
type & VK_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT) != 0 ? 1 : 0;
35 int v = (
type & VK_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT) != 0 ? 1 : 0;
38 if (p && !
v)
return "(performance)";
39 if (p &&
v)
return "(performance and validation)";
40 if (
v)
return "(validation)";
Referenced by debugUtilsCallback().
◆ QVk_CreateValidationLayers()
void QVk_CreateValidationLayers |
( |
| ) |
|
Definition at line 74 of file vk_validation.c.
76 VkDebugUtilsMessengerCreateInfoEXT callbackInfo = {
77 .sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT,
80 .messageSeverity = VK_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT |
81 VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT,
82 .messageType = VK_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT |
83 VK_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT |
84 VK_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT,
91 callbackInfo.messageSeverity |= VK_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT |
92 VK_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT;
Referenced by QVk_Init().
◆ QVk_DestroyValidationLayers()
void QVk_DestroyValidationLayers |
( |
| ) |
|
◆ validationMessenger
VkDebugUtilsMessengerEXT validationMessenger = VK_NULL_HANDLE |
|
static |
◆ vk_logfp