-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vulkan: Correctly handle 3D images with 2D views
The spec allows 2D `VkImageView`s of 3D `VkImage`s. The array layers of the 2D view correspond to depth in the 3D image. For example, the valid usage for VkImageViewCreateInfo specifies: > If subresourceRange::layerCount is not VK_REMAINING_ARRAY_LAYERS, image is a > 3D image created with VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT set, and > viewType is VK_IMAGE_VIEW_TYPE_2D or VK_IMAGE_VIEW_TYPE_2D_ARRAY, > subresourceRange::layerCount must be non-zero and > subresourceRange::baseArrayLayer + subresourceRange::layerCount must be less > than or equal to the extent.depth specified in VkImageCreateInfo when image > was created
- Loading branch information
Showing
2 changed files
with
106 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters