message: Prefer VK_LAYER_KHRONOS_validation for debugging if available
diff: @@ -107,16 +107,32 @@ void VulkanGraphicsTest::Prepare(int argc, char **argv)
  CHECK_VKR(vkh::enumerateInstanceLayerProperties(supportedLayers));
  if(debugDevice)
  + {
  + bool found = false;
  +
  + for(const VkLayerProperties &layer : supportedLayers)
  + {
  + if(!strcmp(layer.layerName, "VK_LAYER_KHRONOS_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;
  CHECK_VKR(vkh::enumerateInstanceExtensionProperties(supportedExts, NULL));
  