Error creating descriptor pool with VK_LAYER_LUNARG_core_validation turned on

This is easy to repro:
[ul]
[li]Enable the VK_LAYER_LUNARG_core_validation instance layer
[/li][li]Create a debug callback with VK_DEBUG_REPORT_INFORMATION_BIT_EXT set
[/li][li]Create a descriptor pool
[/li][/ul]

Note that the information bit needs to be set for this to fail. vkCreateDescriptorPool will return VK_ERROR_VALIDATION_FAILED_EXT. I reproduced this on the cube sample.

I think that is a conformant behavior.
Spec:

The callback returns a VkBool32 that indicates to the calling layer if the Vulkan call should be aborted or not. Applications should always return VK_FALSE so that they see the same behavior with and without validation layers enabled.

If the application returns VK_TRUE from its callback and the Vulkan call being aborted returns a VkResult, the layer will return VK_ERROR_VALIDATION_FAILED_EXT.

Just return VK_FALSE (at least on INFO and DEBUG messages).

… ohhhh, thanks :frowning: