1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 04:02:42 +01:00

gl: Add support for capture debug markers

This commit is contained in:
kd-11 2022-11-21 20:56:30 +03:00 committed by kd-11
parent a97424d46c
commit 81f9259063
2 changed files with 9 additions and 0 deletions

View File

@ -277,6 +277,9 @@ OPENGL_PROC(PFNGLDISPATCHCOMPUTEPROC, DispatchCompute);
OPENGL_PROC(PFNGLDEPTHRANGEDNVPROC, DepthRangedNV);
OPENGL_PROC(PFNGLDEPTHBOUNDSDNVPROC, DepthBoundsdNV);
// EXT_debug_marker
OPENGL_PROC(PFNGLINSERTEVENTMARKEREXTPROC, InsertEventMarkerEXT);
WGL_PROC(PFNWGLSWAPINTERVALEXTPROC, SwapIntervalEXT);
#if !defined(__GNUG__) || defined(__MINGW32__)

View File

@ -70,4 +70,10 @@ namespace gl
glBindBuffer(BindId, m_last_binding);
}
};
// Very useful util when capturing traces with RenderDoc
static inline void push_debug_label(const char* label)
{
glInsertEventMarkerEXT(strlen(label), label);
}
}