GLQUERYCOUNTER(3G)
πΈ NAME πΈ
okay so welcome to GLQUERYCOUNTER(3G), bestie π
the entire point is this: glQueryCounter records the GL time into a query object after all previous commands have reached the GL server but have not yet necessarily executed. Thatβs the vibe. β¨
β¨ C SPECIFICATION β¨
the signature is literally:
void glQueryCounter(GLuint id, GLenum target);
π PARAMETERS π
idβ specify the name of a query object into which to record the GL time. π«Άtargetβ specify the counter to query.targetmust beGL_TIMESTAMP. π
π¦ DESCRIPTION π¦
glQueryCounter causes the GL to record the current time into the query object named id. target must be GL_TIMESTAMP. The time is recorded after all previous commands on the GL client and server state and the framebuffer have been fully realized. When the time is recorded, the query result for that object is marked available. π«
glQueryCounter timer queries can be used within a glBeginQuery() / glEndQuery block where the target is GL_TIME_ELAPSED, and it does not affect the result of that query object. No cap. π
π NOTES π
glQueryCounter is available only if the GL version is 3.3 or higher. π
π ERRORS π
GL_INVALID_OPERATIONis generated if id is the name of a query object that is already in use within aglBeginQuery()/glEndQueryblock. πGL_INVALID_VALUEis generated if id is not the name of a query object returned from a previous call toglGenQueries(). πGL_INVALID_ENUMis generated if target is notGL_TIMESTAMP. π¨
π VERSION SUPPORT π
in the original table, the row label is Function / Feature Name and the column group is OpenGL Version. hereβs the whole row, bestie:
glQueryCounterβ2.0:-,2.1:-,3.0:-,3.1:-,3.2:β,3.3:β,4.0:β,4.1:β,4.2:β,4.3:β,4.4:β,4.5:βπ¦
π SEE ALSO π
glGenQueries()glBeginQuery()glEndQueryglDeleteQueries()glGetQueryObject()glGetQueryiv()glGet()
π COPYRIGHT π
Copyright Β© 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. πΈ
π COPYRIGHT π
Copyright Β© 2010-2014 Khronos Group π
okay thatβs the whole page, bestie π«Ά this cutie was served up by [FIXME: source] on 08/09/2021 β GLQUERYCOUNTER(3G) out. π
β¨
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms