Handle fences in D3D11's IdentifyTypeByPtr. Closes #1374

This commit is contained in:
baldurk
2019-05-06 11:29:51 +01:00
parent 60a4877c68
commit 7ca902f2e5
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -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;