Skip to content

Commit

Permalink
gltrace: Move GL_EXT_debug_marker/label from GLES to ES specs.
Browse files Browse the repository at this point in the history
They are also available in GL, and Apple actually advertises them in MacOSX:
https://developer.apple.com/graphicsimaging/opengl/capabilities/
  • Loading branch information
jrfonseca committed Feb 4, 2014
1 parent cb07e2d commit fd67604
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ through the following extensions:

* [`GL_ARB_debug_output`](http://www.opengl.org/registry/specs/ARB/debug_output.txt)

* [`GL_EXT_debug_marker`](http://www.khronos.org/registry/gles/extensions/EXT/EXT_debug_marker.txt)

* [`GL_EXT_debug_label`](http://www.opengl.org/registry/specs/EXT/EXT_debug_label.txt)

* [`GL_AMD_debug_output`](http://www.opengl.org/registry/specs/AMD/debug_output.txt)

* [`GL_GREMEDY_string_marker`](http://www.opengl.org/registry/specs/GREMEDY/string_marker.txt)
Expand Down
9 changes: 9 additions & 0 deletions specs/glapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3018,6 +3018,15 @@ def OutGlString(charType, lengthPtr, argName):
# GL_NV_framebuffer_blit
GlFunction(Void, "glBlitFramebufferNV", [(GLint, "srcX0"), (GLint, "srcY0"), (GLint, "srcX1"), (GLint, "srcY1"), (GLint, "dstX0"), (GLint, "dstY0"), (GLint, "dstX1"), (GLint, "dstY1"), (GLbitfield_attrib, "mask"), (GLenum, "filter")]),

# GL_EXT_debug_label
GlFunction(Void, "glLabelObjectEXT", [(GLenum, "type"), (GLuint, "object"), (GLsizei, "length"), (GLstringConst, "label")]),
GlFunction(Void, "glGetObjectLabelEXT", [(GLenum, "type"), (GLuint, "object"), (GLsizei, "bufSize"), Out(Pointer(GLsizei), "length"), Out(GLstring, "label")], sideeffects=False),

# GL_EXT_debug_marker
GlFunction(Void, "glInsertEventMarkerEXT", [(GLsizei, "length"), (String(Const(GLchar), "length ? length : strlen(marker)"), "marker")], sideeffects=False),
GlFunction(Void, "glPushGroupMarkerEXT", [(GLsizei, "length"), (String(Const(GLchar), "length ? length : strlen(marker)"), "marker")], sideeffects=False),
GlFunction(Void, "glPopGroupMarkerEXT", [], sideeffects=False),

# GL_KTX_buffer_region
# XXX: http://www.west.net/~brittain/3dsmax2.htm does not mention EXT suffix
GlFunction(GLregion, "glNewBufferRegion", [(GLenum, "type")]),
Expand Down
9 changes: 0 additions & 9 deletions specs/glesapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,6 @@ def GlFunction(*args, **kwargs):
# GL_NV_read_buffer
GlFunction(Void, "glReadBufferNV", [(GLenum, "mode")]),

# GL_EXT_debug_label
GlFunction(Void, "glLabelObjectEXT", [(GLenum, "type"), (GLuint, "object"), (GLsizei, "length"), (GLstringConst, "label")]),
GlFunction(Void, "glGetObjectLabelEXT", [(GLenum, "type"), (GLuint, "object"), (GLsizei, "bufSize"), Out(Pointer(GLsizei), "length"), Out(GLstring, "label")], sideeffects=False),

# GL_EXT_debug_marker
GlFunction(Void, "glInsertEventMarkerEXT", [(GLsizei, "length"), (String(Const(GLchar), "length ? length : strlen(marker)"), "marker")], sideeffects=False),
GlFunction(Void, "glPushGroupMarkerEXT", [(GLsizei, "length"), (String(Const(GLchar), "length ? length : strlen(marker)"), "marker")], sideeffects=False),
GlFunction(Void, "glPopGroupMarkerEXT", [], sideeffects=False),

# GL_EXT_occlusion_query_boolean
GlFunction(Void, "glGenQueriesEXT", [(GLsizei, "n"), Out(Array(GLquery, "n"), "ids")]),
GlFunction(Void, "glDeleteQueriesEXT", [(GLsizei, "n"), (Array(Const(GLquery), "n"), "ids")]),
Expand Down

0 comments on commit fd67604

Please sign in to comment.