glGetObjectLabel

glGetObjectLabel: man4/glGetObjectLabel.xml

glGetObjectLabel retrieves the label of the object identified by name within the namespace given by identifier. identifier must be one of GL_BUFFER, GL_SHADER, GL_PROGRAM, GL_VERTEX_ARRAY, GL_QUERY, GL_PROGRAM_PIPELINE, GL_TRANSFORM_FEEDBACK, GL_SAMPLER, GL_TEXTURE, GL_RENDERBUFFER, GL_FRAMEBUFFER, to indicate the namespace containing the names of buffers, shaders, programs, vertex array objects, query objects, program pipelines, transform feedback objects, samplers, textures, renderbuffers and frame buffers, respectively. label is the address of a string that will be used to store the object label. bufSize specifies the number of characters in the array identified by label. length contains the address of a variable which will receive the the number of characters in the object label. If length is null, then it is ignored and no data is written. Likewise, if label is null, or if bufSize is zero then no data is written to label.

@OpenGL_Version(OGLIntroducedIn.V4P3)
@OpenGL_Extension("GL_KHR_debug")
fn_glGetObjectLabel glGetObjectLabel;

See Also

glPushDebugGroup, glPopDebugGroup, glObjectLabel, glGetObjectPtrLabel.

Meta