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:
parent
a97424d46c
commit
81f9259063
@ -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__)
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user