When enabling API validation register khronos validation layer too

This commit is contained in:
baldurk
2020-05-06 19:35:50 +01:00
parent 25ba64a085
commit 9d67549407
+4
View File
@@ -143,6 +143,10 @@ class VulkanHook : LibraryHook
Process::RegisterEnvironmentModification(
EnvironmentModification(EnvMod::Append, EnvSep::Platform, "VK_DEVICE_LAYERS",
"VK_LAYER_LUNARG_standard_validation"));
Process::RegisterEnvironmentModification(EnvironmentModification(
EnvMod::Append, EnvSep::Platform, "VK_INSTANCE_LAYERS", "VK_LAYER_KHRONOS_validation"));
Process::RegisterEnvironmentModification(EnvironmentModification(
EnvMod::Append, EnvSep::Platform, "VK_DEVICE_LAYERS", "VK_LAYER_KHRONOS_validation"));
}
else
{