Updated RenderDoc to nightly 20141211. Added support for capturing OpenGL.

This commit is contained in:
Branimir Karadžić
2014-12-11 20:48:16 -08:00
parent 2d556e404a
commit d45e245039
7 changed files with 191 additions and 155 deletions

View File

@@ -869,6 +869,8 @@ namespace bgfx
void init()
{
m_renderdocdll = loadRenderDoc();
m_fbh.idx = invalidHandle;
memset(m_uniforms, 0, sizeof(m_uniforms) );
memset(&m_resolution, 0, sizeof(m_resolution) );
@@ -1401,6 +1403,8 @@ namespace bgfx
m_glctx.destroy();
m_flip = false;
unloadRenderDoc(m_renderdocdll);
}
RendererType::Enum getRendererType() const BX_OVERRIDE
@@ -2384,6 +2388,8 @@ namespace bgfx
}
}
void* m_renderdocdll;
uint16_t m_numWindows;
FrameBufferHandle m_windows[BGFX_CONFIG_MAX_FRAME_BUFFERS];
@@ -5182,6 +5188,11 @@ namespace bgfx
);
}
if (NULL != m_renderdocdll)
{
tvm.printf(tvm.m_width-27, 0, 0x1f, " [F11 - RenderDoc capture] ");
}
tvm.printf(10, pos++, 0x8e, " Indices: %7d", statsNumIndices);
tvm.printf(10, pos++, 0x8e, " DVB size: %7d", _render->m_vboffset);
tvm.printf(10, pos++, 0x8e, " DIB size: %7d", _render->m_iboffset);