i dont think i need this??

This commit is contained in:
Mars 2024-09-29 23:04:33 -04:00
parent 651f339537
commit 01cdd533c5
Signed by untrusted user: pupbrained
GPG key ID: 874E22DF2F9DFCB5

View file

@ -97,14 +97,11 @@ class HelloTriangleApplication {
// Retrieve extensions using custom function // Retrieve extensions using custom function
std::vector<const char*> extensions = getRequiredExtensions(); std::vector<const char*> extensions = getRequiredExtensions();
vk::DebugUtilsMessengerCreateInfoEXT debugCreateInfo {};
if (enableValidationLayers) { if (enableValidationLayers) {
createInfo.setEnabledLayerCount(static_cast<uint32_t>(validationLayers.size())) createInfo.setEnabledLayerCount(static_cast<uint32_t>(validationLayers.size()))
.setPpEnabledLayerNames(validationLayers.data()); .setPpEnabledLayerNames(validationLayers.data());
createInfo.setPNext(&debugCreateInfo);
} else { } else {
createInfo.setEnabledLayerCount(0).setPNext(nullptr); createInfo.setEnabledLayerCount(0);
} }
// Enable the portability extension and set flags // Enable the portability extension and set flags