GL_EXT_debug_marker#

Supported Hardware#

Series5, Series5XT

Valid APIs#

OpenGL ES 1.x, 2.0, 3.x

Description#

This extension enables developers to insert debug markers into the command stream, which are essentially a way of annotating code in GL tracing tools such as PVRTrace. There are no other benefits to this extension beyond this, as runtime markers could be introduced by an application developer themselves if they needed a way to label parts of their code.

Note#

This extension’s functionality has been absorbed into GL_KHR_debug, which adds additional functionality and should be used preferentially. As a result, this extension is now considered deprecated.

Example#

// Insert a regular event marker, used effectively as a simple string annotation to your code.
glInsertEventMarkerEXT(0, "This is a debug marker annotation");
// Signal that any following functions belong to a nested functionality group. For instance, this might denote the start of a function which renders a specific object.
glPushGroupMarkerEXT(0, "This is a group of functionality.");
// End the previously defined functionality group
glPopGroupMarkerEXT();