mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Swap 'real' object for a <type,obj> pair, to avoid duplicate handles
* If an implementation returns 1 as a handle for both an image and buffer we must be able to differentiate and not clash the wrappers.
This commit is contained in:
@@ -94,6 +94,8 @@ VkResourceType IdentifyTypeByPtr(WrappedVkRes *ptr)
|
||||
if(WrappedVkCmdPool::IsAlloc(ptr)) return eResCmdPool;
|
||||
if(WrappedVkCmdBuffer::IsAlloc(ptr)) return eResCmdBuffer;
|
||||
if(WrappedVkFence::IsAlloc(ptr)) return eResFence;
|
||||
if(WrappedVkEvent::IsAlloc(ptr)) return eResEvent;
|
||||
if(WrappedVkQueryPool::IsAlloc(ptr)) return eResQueryPool;
|
||||
if(WrappedVkSemaphore::IsAlloc(ptr)) return eResSemaphore;
|
||||
if(WrappedVkSwapChainWSI::IsAlloc(ptr)) return eResWSISwapChain;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user