mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Handle fences in D3D11's IdentifyTypeByPtr. Closes #1374
This commit is contained in:
@@ -58,6 +58,7 @@ enum D3D11ResourceType
|
||||
Resource_DeviceContext,
|
||||
Resource_CommandList,
|
||||
Resource_DeviceState,
|
||||
Resource_Fence,
|
||||
};
|
||||
|
||||
DECLARE_REFLECTION_ENUM(D3D11ResourceType);
|
||||
|
||||
@@ -433,6 +433,9 @@ D3D11ResourceType IdentifyTypeByPtr(IUnknown *ptr)
|
||||
if(WrappedID3DDeviceContextState::IsAlloc(ptr))
|
||||
return Resource_DeviceState;
|
||||
|
||||
if(WrappedID3D11Fence::IsAlloc(ptr))
|
||||
return Resource_Fence;
|
||||
|
||||
RDCERR("Unknown type for ptr 0x%p", ptr);
|
||||
|
||||
return Resource_Unknown;
|
||||
|
||||
Reference in New Issue
Block a user