mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-17 19:25:39 +00:00
Register some common classes with the crash handler to preserve
* This hopefully makes crash dumps more useful if we can get at their direct members reliably.
This commit is contained in:
@@ -37,6 +37,9 @@ static const char *SPIRVDisassemblyTarget = "SPIR-V (RenderDoc)";
|
||||
|
||||
GLReplay::GLReplay()
|
||||
{
|
||||
if(RenderDoc::Inst().GetCrashHandler())
|
||||
RenderDoc::Inst().GetCrashHandler()->RegisterMemoryRegion(this, sizeof(GLReplay));
|
||||
|
||||
m_pDriver = NULL;
|
||||
m_Proxy = false;
|
||||
|
||||
|
||||
@@ -89,6 +89,9 @@ void VkInitParams::Set(const VkInstanceCreateInfo *pCreateInfo, ResourceId inst)
|
||||
|
||||
WrappedVulkan::WrappedVulkan() : m_RenderState(this, &m_CreationInfo)
|
||||
{
|
||||
if(RenderDoc::Inst().GetCrashHandler())
|
||||
RenderDoc::Inst().GetCrashHandler()->RegisterMemoryRegion(this, sizeof(WrappedVulkan));
|
||||
|
||||
if(RenderDoc::Inst().IsReplayApp())
|
||||
{
|
||||
if(VkMarkerRegion::vk == NULL)
|
||||
|
||||
@@ -393,6 +393,9 @@ static void create(WrappedVulkan *driver, const char *objName, const int line, V
|
||||
|
||||
VulkanDebugManager::VulkanDebugManager(WrappedVulkan *driver)
|
||||
{
|
||||
if(RenderDoc::Inst().GetCrashHandler())
|
||||
RenderDoc::Inst().GetCrashHandler()->RegisterMemoryRegion(this, sizeof(VulkanDebugManager));
|
||||
|
||||
m_pDriver = driver;
|
||||
|
||||
m_Device = m_pDriver->GetDev();
|
||||
|
||||
@@ -42,6 +42,9 @@ static const char *LiveDriverDisassemblyTarget = "Live driver disassembly";
|
||||
|
||||
VulkanReplay::VulkanReplay()
|
||||
{
|
||||
if(RenderDoc::Inst().GetCrashHandler())
|
||||
RenderDoc::Inst().GetCrashHandler()->RegisterMemoryRegion(this, sizeof(VulkanReplay));
|
||||
|
||||
m_pDriver = NULL;
|
||||
m_Proxy = false;
|
||||
|
||||
|
||||
@@ -178,6 +178,9 @@ ReplayController::ReplayController()
|
||||
m_D3D12PipelineState = NULL;
|
||||
m_GLPipelineState = NULL;
|
||||
m_VulkanPipelineState = NULL;
|
||||
|
||||
if(RenderDoc::Inst().GetCrashHandler())
|
||||
RenderDoc::Inst().GetCrashHandler()->RegisterMemoryRegion(this, sizeof(ReplayController));
|
||||
}
|
||||
|
||||
ReplayController::~ReplayController()
|
||||
|
||||
@@ -104,6 +104,9 @@ ReplayOutput::ReplayOutput(ReplayController *parent, WindowingData window, Repla
|
||||
m_pDevice->GetOutputWindowDimensions(m_MainOutput.outputID, m_Width, m_Height);
|
||||
|
||||
m_CustomShaderResourceId = ResourceId();
|
||||
|
||||
if(RenderDoc::Inst().GetCrashHandler())
|
||||
RenderDoc::Inst().GetCrashHandler()->RegisterMemoryRegion(this, sizeof(ReplayController));
|
||||
}
|
||||
|
||||
ReplayOutput::~ReplayOutput()
|
||||
|
||||
Reference in New Issue
Block a user