mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-26 08:44:36 +00:00
Fixed default_debug_callback warning over unused formal paramter
This commit is contained in:
parent
505f9d91f9
commit
b330527d65
@ -108,12 +108,11 @@ void destroy_debug_utils_messenger (
|
|||||||
VkBool32 default_debug_callback (VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
|
VkBool32 default_debug_callback (VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
|
||||||
VkDebugUtilsMessageTypeFlagsEXT messageType,
|
VkDebugUtilsMessageTypeFlagsEXT messageType,
|
||||||
const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData,
|
const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData,
|
||||||
void* pUserData) {
|
void*) {
|
||||||
auto ms = to_string_message_severity (messageSeverity);
|
auto ms = to_string_message_severity (messageSeverity);
|
||||||
auto mt = to_string_message_type (messageType);
|
auto mt = to_string_message_type (messageType);
|
||||||
printf ("[%s: %s]\n%s\n", ms, mt, pCallbackData->pMessage);
|
printf ("[%s: %s]\n%s\n", ms, mt, pCallbackData->pMessage);
|
||||||
|
|
||||||
assert (pUserData == nullptr && "Default debug callback should have no user data");
|
|
||||||
return VK_FALSE;
|
return VK_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user