KhronosGroup / Vulkan-LoaderAndValidationLayers

**Deprecated repository** for Vulkan loader and validation layers
Apache License 2.0
414 stars 172 forks source link

Multiplanar aspect flags are still reporting an error #2527

Closed ghost closed 6 years ago

ghost commented 6 years ago

This is a duplicate of #2378 but because I can't reopen it I'm creating a new one.

The issue is that whenever the aspect flags are checked, the validation layer does not yet recognize the multiplanae aspect flags (VK_IMAGE_ASPECT_PLANE_0_BIT and so on) as valid and prints the following error:

vkCreateImageView(): Color image formats must have the VK_IMAGE_ASPECT_COLOR_BIT set. The spec valid usage text states 'aspectMask must be a valid combination of VkImageAspectFlagBits values' (https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#VUID-VkImageSubresource-aspectMask-parameter)

vkCmdPipelineBarrier(): Color image formats must have the VK_IMAGE_ASPECT_COLOR_BIT set. The spec valid usage text states 'aspectMask must be a valid combination of VkImageAspectFlagBits values' (https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#VUID-VkImageSubresource-aspectMask-parameter)

The issue occurs with current git master (37beb71e6fdb90d1bf40089abf98bb3c).