I got some problems when implement the validation rule on the spec:
VUID-VkImageViewCreateInfo-image-01003
Ifimage
was not created withVK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT
thenviewType
must not beVK_IMAGE_VIEW_TYPE_CUBE
orVK_IMAGE_VIEW_TYPE_CUBE_ARRAY
In my case, the image I got is returned from a swapchain by using vkGetSwapchainImagesKHR
, not created by myself, and I checked the doc and didn’t find a function to query the VkImageCreateFlagBits
.
So
- Is there a function to do that?
- If not, should I ignore checking rules like this (rules depends on information about a give image) in my case?