i dont think i need this??
This commit is contained in:
parent
651f339537
commit
01cdd533c5
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue