GLCREATEQUERIES(3G)

glCreateQueries(3G) β€” query objects but make it fashion πŸ’…βœ¨

hiii bestie!! welcome to the GLCREATEQUERIES(3G) manual page β€” manual section 3G, function glCreateQueries, and honestly it's giving short but iconic πŸ’–. no cap, here's the whole thing with all the deets.

NAME πŸ’–

glCreateQueries β€” create query objects, periodt.

C SPECIFICATION 🧾

void glCreateQueries(GLenum target, GLsizei n, GLuint *ids);

PARAMETERS πŸŽ€

  • target β€” tells you the target of each query object you're creating. it's the vibe each new query object is born with ✨
  • n β€” the number of query objects to create. yes, n, the classic β€œhow many?” bestie.
  • ids β€” an array where the names of the new query objects get stored. it's the lil home for your fresh names 🫢

DESCRIPTION πŸ¦‹

okay so glCreateQueries returns n previously unused query object names in ids. each one represents a brand-new query object with the specified target. slay.

target may be one of these, bestie:

  • GL_SAMPLES_PASSED
  • GL_ANY_SAMPLES_PASSED
  • GL_ANY_SAMPLES_PASSED_CONSERVATIVE
  • GL_TIME_ELAPSED
  • GL_TIMESTAMP
  • GL_PRIMITIVES_GENERATED
  • GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN

and that's the list β€” no extras, no invented options, iykyk.

ERRORS 😭

  • GL_INVALID_ENUM is generated if target is not an accepted value. so if you pass a random target, GL is like β€œnot on the list, bestie” πŸ’€
  • GL_INVALID_VALUE is generated if n is negative. negative query count? not the move, fr fr.

VERSION SUPPORT πŸ”₯

function / feature name: glCreateQueries. OpenGL version vibe check:

  • 2.0 β€” -
  • 2.1 β€” -
  • 3.0 β€” -
  • 3.1 β€” -
  • 3.2 β€” -
  • 3.3 β€” -
  • 4.0 β€” -
  • 4.1 β€” -
  • 4.2 β€” -
  • 4.3 β€” -
  • 4.4 β€” -
  • 4.5 β€” βœ”

so it's a 4.5-only situation in this chart. the other versions said β€œnot today” ✨

SEE ALSO πŸ‘€

  • glBeginQuery()
  • glBeginQueryIndexed()
  • glDeleteQueries()
  • glEndQuery
  • glGenQueries()
  • glGetQueryObject()
  • glGetQueryiv()
  • glIsQuery()

Copyright Β© 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 Β© 2014 Khronos Group

xoxo, your fav manual πŸ’– β€” source/version [FIXME: source], dated 08/09/2021, reppin' GLCREATEQUERIES(3G). πŸŽ€

πŸ“¦ where this page comes from