Skip to content

Commit

Permalink
use KHRONOS validation instead of LUNARG
Browse files Browse the repository at this point in the history
  • Loading branch information
bkmgit authored May 7, 2021
1 parent e82aa8e commit 066ab9e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class ComputeApplication {

/*
By enabling validation layers, Vulkan will emit warnings if the API
is used incorrectly. We shall enable the layer VK_LAYER_LUNARG_standard_validation,
is used incorrectly. We shall enable the layer VK_LAYER_KHRONOS_validation,
which is basically a collection of several useful validation layers.
*/
if (enableValidationLayers) {
Expand All @@ -204,22 +204,22 @@ class ComputeApplication {
vkEnumerateInstanceLayerProperties(&layerCount, layerProperties.data());

/*
And then we simply check if VK_LAYER_LUNARG_standard_validation is among the supported layers.
And then we simply check if VK_LAYER_KHRONOS_validation is among the supported layers.
*/
bool foundLayer = false;
for (VkLayerProperties prop : layerProperties) {

if (strcmp("VK_LAYER_LUNARG_standard_validation", prop.layerName) == 0) {
if (strcmp("VK_LAYER_KHRONOS_validation", prop.layerName) == 0) {
foundLayer = true;
break;
}

}

if (!foundLayer) {
throw std::runtime_error("Layer VK_LAYER_LUNARG_standard_validation not supported\n");
throw std::runtime_error("Layer VK_LAYER_KHRONOS_validation not supported\n");
}
enabledLayers.push_back("VK_LAYER_LUNARG_standard_validation"); // Alright, we can use this layer.
enabledLayers.push_back("VK_LAYER_KHRONOS_validation"); // Alright, we can use this layer.

/*
We need to enable an extension named VK_EXT_DEBUG_REPORT_EXTENSION_NAME,
Expand Down

0 comments on commit 066ab9e

Please sign in to comment.