diff --git a/rpcs3/Emu/RSX/GL/GLProcTable.h b/rpcs3/Emu/RSX/GL/GLProcTable.h index 62c69cd712..20da00944f 100644 --- a/rpcs3/Emu/RSX/GL/GLProcTable.h +++ b/rpcs3/Emu/RSX/GL/GLProcTable.h @@ -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__) diff --git a/rpcs3/Emu/RSX/GL/glutils/common.h b/rpcs3/Emu/RSX/GL/glutils/common.h index 9104bb2ee6..9c4cf18f19 100644 --- a/rpcs3/Emu/RSX/GL/glutils/common.h +++ b/rpcs3/Emu/RSX/GL/glutils/common.h @@ -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); + } }