mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-26 17:31:42 +00:00
This field was recently added to the `ImageInfo` struct, but had not yet been added to the `ImageInfo` serialization. Serializing this field would unnecessarily break capture compatibility. The `imageType` field was added to detect 3D images--depth slices of 3D images are interpreted as array layers when accessed through a 2D image view. This data is (almost) redundant, because 2D images must have `extent.depth==1`, according to the Valid Usage for `VkImageCreateInfo`. The application could create an image with `imageType==VK_IMAGE_TYPE_3D`, but with `extent.depth==1`; we would interpret this as a 2D image, but, since this image would have 1 array layer and 1 depth slice, this doesn't actually cause an issue. Change-Id: I3d53d942cbe8f240845a80f6e12a7cecfdd86967