This extension allows the GL to notify applications when various events occur that may be useful during application development, debugging and profiling.
ObjectPtrLabel and GetObjectPtrLabel
functions are replaced with ObjectLabel and
GetObjectLabel.
count and ids arguments of
DebugMessageControl are replaced with a
sequence<GLuint> ids argument.
length and buf arguments of
DebugMessageInsert and PushDebugGroup are
replaced with a DOMString message argument.
identifier and name arguments of
ObjectLabel and GetObjectLabel are replaced
with a WebGLObject object argument.
length and label arguments of
ObjectLabel are replaced with a DOMString
label argument.
bufSize, length and label
arguments of GetObjectLabel are replaced with a
DOMString return type.
WEBGL_debug extension object is a DOM
EventTarget, obeying the rules of the DOM Level 3 Events,
with a new WebGLDebugMessage event that gets fired
whenever the driver, browser or application emits a debug message.
debugMessageInsertKHR is exposed to allow the application
to insert debug messages into the WebGL stream.
objectLabelKHR and getObjectLabelKHR are
exposed, to assign a label to a WebGLObject and retrieve
it.
pushDebugGroupKHR and popDebugGroupKHR make
it possible to group a list of WebGL calls together.
debugMessageControlKHR allows the application to enable
and disable the debug messages which emit a
WebGLDebugMessage event. This state is part of the debug
group they are part of, and gets poped on
popDebugGroupKHR.
On WEBGL_debug:
WebGLDebugMessage
events for the specified messages.
pushDebugGroupKHR.
WebGLObject.
WebGLObject.