logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

glCreateQueries - create query objects

C Specification

voidglCreateQueries(GLenumtarget,GLsizein,GLuint*ids);

Description

glCreateQueries returns n previously unused query object names in ids, each representing a new query
       object with the specified target.

       target may be one of GL_SAMPLES_PASSED, GL_ANY_SAMPLES_PASSED, GL_ANY_SAMPLES_PASSED_CONSERVATIVE,
       GL_TIME_ELAPSED, GL_TIMESTAMP, GL_PRIMITIVES_GENERATED or GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN.

Errors

GL_INVALID_ENUM is generated if target is not an accepted value.

       GL_INVALID_VALUE is generated if n is negative.

Name

       glCreateQueries - create query objects

Parameters

target
           Specifies the target of each created query object.

       n
           Number of query objects to create.

       ids
           Specifies an array in which names of the new query objects are stored.

See Also

glBeginQuery(), glBeginQueryIndexed(), glDeleteQueries(),

       glEndQuery, glGenQueries(), glGetQueryObject(), glGetQueryiv(), glIsQuery()

Version Support

       ┌─────────────────┬───────────────────────────────────────────────────────────────────────┐
       │                 │                OpenGLVersion                                         │
       ├─────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /               │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature         │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name            │     │     │     │     │     │     │     │     │     │     │     │     │
       ├─────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glCreateQueries │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  ✔  │
       └─────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also