mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
14d74e4dd3
Serialize the presented texture (presentedImage) as part of "presentDrawable" serialization. Use the present texture resource ID in the action name ie. "presentDrawable(Texture 23219)" Track the most recently presented image and use that in SystemChunk::CaptureEnd if the PresentedImage serialized data is empty resource. Track the CAMetalDrawable's created via the hooked CAMetalLayer::nextDrawable() method. Implements TODO in WrappedMTLCommandBuffer::presentDrawable "remove the (CA::MetalDrawable*) cast. Associate created texture and layer in hooked nextDrawable with MTL::Drawable*"