Uee new VK_LAYER_KHRONOS_validation layer on all platforms
Check if validation layer is actually present
This commit is contained in:
parent
01bf10f9a8
commit
10129ee606
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ VkResult VulkanExampleBase::createInstance(bool enableValidation)
|
|||
std::vector<VkLayerProperties> instanceLayerProperties(instanceLayerCount);
|
||||
vkEnumerateInstanceLayerProperties(&instanceLayerCount, instanceLayerProperties.data());
|
||||
bool validationLayerPresent = false;
|
||||
for each (VkLayerProperties layer in instanceLayerProperties) {
|
||||
for (VkLayerProperties layer : instanceLayerProperties) {
|
||||
if (strcmp(layer.layerName, validationLayerName) == 0) {
|
||||
validationLayerPresent = true;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue