mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-26 03:41:01 +00:00
3b48de6b2d
For images with both depth and stencil aspects, `VkImageMemoryBarrier`s must include both depth and stencil aspects--e.g. you cannot transition the layout of the depth alone. This can be violated by the barriers in RenderDoc replay that transition image layouts before and after initialization. This change ensures that, if depth or stencil needs to be initialized, then beth will be initialized, and the image layout transition will be applied to the two aspects together. Specifically, `ImgRefs` stores a separate FrameRefType for each aspect. This can cause the depth and stencil aspects to have different reset requirements, which can cause a barrier to contain only one of the depth/stencil aspects. Change-Id: I8a16a0c450bd8e6cb0d60c1d688b01b75df86915