mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Vulkan: Use VK_LAYER_KHRONOS_validation for validation
VK_LAYER_LUNARG_standard_validation is deprecated.
This commit is contained in:
parent
31524288e3
commit
24bb947eff
@ -81,7 +81,7 @@ bool VulkanContext::CheckValidationLayerAvailablility()
|
|||||||
return strcmp(it.extensionName, VK_EXT_DEBUG_REPORT_EXTENSION_NAME) == 0;
|
return strcmp(it.extensionName, VK_EXT_DEBUG_REPORT_EXTENSION_NAME) == 0;
|
||||||
}) != extension_list.end() &&
|
}) != extension_list.end() &&
|
||||||
std::find_if(layer_list.begin(), layer_list.end(), [](const auto& it) {
|
std::find_if(layer_list.begin(), layer_list.end(), [](const auto& it) {
|
||||||
return strcmp(it.layerName, "VK_LAYER_LUNARG_standard_validation") == 0;
|
return strcmp(it.layerName, "VK_LAYER_KHRONOS_validation") == 0;
|
||||||
}) != layer_list.end());
|
}) != layer_list.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,7 +127,7 @@ VkInstance VulkanContext::CreateVulkanInstance(WindowSystemType wstype, bool ena
|
|||||||
// Enable debug layer on debug builds
|
// Enable debug layer on debug builds
|
||||||
if (enable_validation_layer)
|
if (enable_validation_layer)
|
||||||
{
|
{
|
||||||
static const char* layer_names[] = {"VK_LAYER_LUNARG_standard_validation"};
|
static const char* layer_names[] = {"VK_LAYER_KHRONOS_validation"};
|
||||||
instance_create_info.enabledLayerCount = 1;
|
instance_create_info.enabledLayerCount = 1;
|
||||||
instance_create_info.ppEnabledLayerNames = layer_names;
|
instance_create_info.ppEnabledLayerNames = layer_names;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user