mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-19 21:16:34 +00:00
The image info (layerCount, levelCount, sampleCount, extent, format, type) was previously only available through `ImageLayouts`. This info is now also stored in `ResourceInfo`. Storing this in `ResourceInfo` makes this info easily accessible from `VkResourceRecord`s representing `VkImage`s and `VkImageView`s. This simplifies upcoming changes to the image tracking and avoids the lock protecting the `m_ImageLayouts` map. To simplify this duplication, a new struct `ImageInfo` is added here to hold the image info in both `ResourceInfo` and `ImageLayouts`. Change-Id: I390cbba4c3ce7b0bd6f004521497c21bf4c1e97f