mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Prefer VK_LAYER_KHRONOS_validation for debugging if available
This commit is contained in:
@@ -108,14 +108,30 @@ void VulkanGraphicsTest::Prepare(int argc, char **argv)
|
||||
|
||||
if(debugDevice)
|
||||
{
|
||||
bool found = false;
|
||||
|
||||
for(const VkLayerProperties &layer : supportedLayers)
|
||||
{
|
||||
if(!strcmp(layer.layerName, "VK_LAYER_LUNARG_standard_validation"))
|
||||
if(!strcmp(layer.layerName, "VK_LAYER_KHRONOS_validation"))
|
||||
{
|
||||
enabledLayers.push_back("VK_LAYER_LUNARG_standard_validation");
|
||||
enabledLayers.push_back("VK_LAYER_KHRONOS_validation");
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(!found)
|
||||
{
|
||||
for(const VkLayerProperties &layer : supportedLayers)
|
||||
{
|
||||
if(!strcmp(layer.layerName, "VK_LAYER_LUNARG_standard_validation"))
|
||||
{
|
||||
enabledLayers.push_back("VK_LAYER_LUNARG_standard_validation");
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<VkExtensionProperties> supportedExts;
|
||||
|
||||
Reference in New Issue
Block a user