mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Add DeviceFrameCapturer support for Vulkan
This commit is contained in:
@@ -184,6 +184,8 @@ VkResult WrappedVulkan::vkCreateInstance(
|
||||
}
|
||||
|
||||
InitInstanceExtensionTables(m_Instance);
|
||||
|
||||
RenderDoc::Inst().AddDeviceFrameCapturer(LayerDisp(m_Instance), this);
|
||||
|
||||
m_DbgMsgCallback = VK_NULL_HANDLE;
|
||||
m_PhysicalDevice = VK_NULL_HANDLE;
|
||||
@@ -267,6 +269,8 @@ void WrappedVulkan::vkDestroyInstance(VkInstance instance, const VkAllocationCal
|
||||
|
||||
ObjDisp(m_Instance)->DestroyInstance(Unwrap(m_Instance), NULL);
|
||||
GetResourceManager()->ReleaseWrappedResource(m_Instance);
|
||||
|
||||
RenderDoc::Inst().RemoveDeviceFrameCapturer(LayerDisp(m_Instance));
|
||||
|
||||
m_Instance = VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user