KhronosGroup / KhronosGroup/Vulkan-Docs
VkImageSubresourceRange VU and Swapchain Images
- Dominant language
- JavaScript
- Stars
- 3.3k
- Forks
- 549
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 2
Description
VkImageSubresourceRange VU says:
> If `levelCount` is not `VK_REMAINING_MIP_LEVELS`, `levelCount` **must** be non-zero and (`baseMipLevel` + `levelCount`) **must** be less than or equal to the mipLevels specified in `VkImageCreateInfo` when the image was created
But swapchain images are not created by `VkImageCreateInfo`.
Similarly for array levels, which are actually specified by `VkSwapchainCreateInfoKHR::imageArrayLayers`, not by `VkImageCreateInfo`.
Similarly for `VkImageSubresourceLayers` VU.
Contributor guide
Research direction
Locate the VkImageSubresourceRange and VkImageSubresourceLayers VUs in the specification and read the referenced VkImageCreateInfo and VkSwapchainCreateInfoKHR::imageArrayLayers definitions. Check how swapchain images supply mip and array-layer limits; done when both VUs correctly account for swapchain images.
Written by the indexing model from the issue text.
Assessment
- Domain
- computer-graphics, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100