KhronosGroup / KhronosGroup/Vulkan-Docs

VkImageSubresourceRange VU and Swapchain Images

Open
#473 2 comments 0 reactions 0 assignees View on GitHub
System Integration
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.