forked from pupbrained/vulkan-test
i prefer this
This commit is contained in:
parent
d6c93896d1
commit
651f339537
20
src/main.cpp
20
src/main.cpp
|
@ -57,19 +57,15 @@ class HelloTriangleApplication {
|
||||||
if (!enableValidationLayers)
|
if (!enableValidationLayers)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto messengerCreateInfo = vk::DebugUtilsMessengerCreateInfoEXT()
|
vk::DebugUtilsMessengerCreateInfoEXT messengerCreateInfo {
|
||||||
.setMessageSeverity(
|
.messageSeverity = vk::DebugUtilsMessageSeverityFlagBitsEXT::eVerbose |
|
||||||
vk::DebugUtilsMessageSeverityFlagBitsEXT::eVerbose |
|
|
||||||
vk::DebugUtilsMessageSeverityFlagBitsEXT::eWarning |
|
vk::DebugUtilsMessageSeverityFlagBitsEXT::eWarning |
|
||||||
vk::DebugUtilsMessageSeverityFlagBitsEXT::eError
|
vk::DebugUtilsMessageSeverityFlagBitsEXT::eError,
|
||||||
)
|
.messageType = vk::DebugUtilsMessageTypeFlagBitsEXT::eGeneral |
|
||||||
.setMessageType(
|
vk::DebugUtilsMessageTypeFlagBitsEXT::eValidation |
|
||||||
vk::DebugUtilsMessageTypeFlagBitsEXT::eGeneral |
|
vk::DebugUtilsMessageTypeFlagBitsEXT::ePerformance,
|
||||||
vk::DebugUtilsMessageTypeFlagBitsEXT::ePerformance |
|
.pfnUserCallback = debugCallback,
|
||||||
vk::DebugUtilsMessageTypeFlagBitsEXT::eValidation
|
};
|
||||||
)
|
|
||||||
.setPfnUserCallback(debugCallback)
|
|
||||||
.setPUserData(nullptr); // Optional
|
|
||||||
|
|
||||||
mDebugMessenger = mInstance->createDebugUtilsMessengerEXTUnique(messengerCreateInfo, nullptr, mLoader);
|
mDebugMessenger = mInstance->createDebugUtilsMessengerEXTUnique(messengerCreateInfo, nullptr, mLoader);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue