mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-02 22:01:41 +00:00
Fix that vk_debug doesn't output anything for newer versions of the vulkan sdk
This commit is contained in:
parent
3bedf79222
commit
1452dd06a7
1 changed files with 10 additions and 6 deletions
|
@ -277,16 +277,20 @@ void VulkanDevice::CreateInstance()
|
|||
Extensions = GetExtensions();
|
||||
EnabledExtensions = GetPlatformExtensions();
|
||||
|
||||
std::string debugLayer = "VK_LAYER_LUNARG_standard_validation";
|
||||
std::string debugLayer = "VK_LAYER_KHRONOS_validation";
|
||||
bool wantDebugLayer = vk_debug;
|
||||
bool debugLayerFound = false;
|
||||
for (const VkLayerProperties &layer : AvailableLayers)
|
||||
if (wantDebugLayer)
|
||||
{
|
||||
if (layer.layerName == debugLayer && wantDebugLayer)
|
||||
for (const VkLayerProperties& layer : AvailableLayers)
|
||||
{
|
||||
EnabledValidationLayers.push_back(debugLayer.c_str());
|
||||
EnabledExtensions.push_back(VK_EXT_DEBUG_UTILS_EXTENSION_NAME);
|
||||
debugLayerFound = true;
|
||||
if (layer.layerName == debugLayer)
|
||||
{
|
||||
EnabledValidationLayers.push_back(layer.layerName);
|
||||
EnabledExtensions.push_back(VK_EXT_DEBUG_UTILS_EXTENSION_NAME);
|
||||
debugLayerFound = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue