gl: Add support for capture debug markers
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user