mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-18 08:21:11 +00:00
gl: Add support for capture debug markers
This commit is contained in:
parent
a97424d46c
commit
81f9259063
2 changed files with 9 additions and 0 deletions
|
@ -277,6 +277,9 @@ OPENGL_PROC(PFNGLDISPATCHCOMPUTEPROC, DispatchCompute);
|
||||||
OPENGL_PROC(PFNGLDEPTHRANGEDNVPROC, DepthRangedNV);
|
OPENGL_PROC(PFNGLDEPTHRANGEDNVPROC, DepthRangedNV);
|
||||||
OPENGL_PROC(PFNGLDEPTHBOUNDSDNVPROC, DepthBoundsdNV);
|
OPENGL_PROC(PFNGLDEPTHBOUNDSDNVPROC, DepthBoundsdNV);
|
||||||
|
|
||||||
|
// EXT_debug_marker
|
||||||
|
OPENGL_PROC(PFNGLINSERTEVENTMARKEREXTPROC, InsertEventMarkerEXT);
|
||||||
|
|
||||||
WGL_PROC(PFNWGLSWAPINTERVALEXTPROC, SwapIntervalEXT);
|
WGL_PROC(PFNWGLSWAPINTERVALEXTPROC, SwapIntervalEXT);
|
||||||
|
|
||||||
#if !defined(__GNUG__) || defined(__MINGW32__)
|
#if !defined(__GNUG__) || defined(__MINGW32__)
|
||||||
|
|
|
@ -70,4 +70,10 @@ namespace gl
|
||||||
glBindBuffer(BindId, m_last_binding);
|
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…
Add table
Add a link
Reference in a new issue