mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 05:23:00 +01:00
Updated RenderDoc to nightly 20141211. Added support for capturing OpenGL.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user