Skip to content

Commit

Permalink
Migrate to Khronos validation layer
Browse files Browse the repository at this point in the history
  • Loading branch information
krOoze committed Aug 20, 2019
1 parent f26489e commit 3a579d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/HelloTriangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ int helloTriangle() try{
vector<const char*> requestedLayers;

#if VULKAN_VALIDATION
if( isLayerSupported( "VK_LAYER_LUNARG_standard_validation", supportedLayers ) ) requestedLayers.push_back( "VK_LAYER_LUNARG_standard_validation" );
else throw "VULKAN_VALIDATION is enabled but VK_LAYER_LUNARG_standard_validation layers are not supported!";
if( isLayerSupported( "VK_LAYER_KHRONOS_validation", supportedLayers ) ) requestedLayers.push_back( "VK_LAYER_KHRONOS_validation" );
else throw "VULKAN_VALIDATION is enabled but VK_LAYER_KHRONOS_validation layers are not supported!";

if( ::useAssistantLayer ){
if( isLayerSupported( "VK_LAYER_LUNARG_assistant_layer", supportedLayers ) ) requestedLayers.push_back( "VK_LAYER_LUNARG_assistant_layer" );
Expand Down
2 changes: 1 addition & 1 deletion src/VulkanEnvironment.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "CompilerMessages.h"

#define REQUIRED_HEADER_VERSION 92
#define REQUIRED_HEADER_VERSION 114

#ifdef NDEBUG
#ifndef VULKAN_VALIDATION
Expand Down

0 comments on commit 3a579d1

Please sign in to comment.