Disable loading LunarG validation layer

* Previously we hinted loading both the old LunarG metalayer and the new
  combined Khronos layer. Since only one was a 'real' layer this was safe and
  would allow us to enable validation anywhere without needing to enumerate
  available layers.
* Unfortunately a new loader version makes it an error to specify the
  VK_LAYER_LUNARG_standard_validation for loading! So it is completely
  impossible to be fully compatible. We have no choice then but to follow the
  loader/SDK's path and have a hard backwards compatibility break.
* This means the validation won't be enabled anymore for anyone on SDK from
  early 2019 and before.
This commit is contained in:
baldurk
2020-12-04 10:42:10 +00:00
parent 07fce392a6
commit 170f29ebfa
-6
View File
@@ -142,12 +142,6 @@ class VulkanHook : LibraryHook
{
if(RenderDoc::Inst().GetCaptureOptions().apiValidation)
{
Process::RegisterEnvironmentModification(
EnvironmentModification(EnvMod::Append, EnvSep::Platform, "VK_INSTANCE_LAYERS",
"VK_LAYER_LUNARG_standard_validation"));
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(