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

glGenSamplers - generate sampler object names

C Specification

voidglGenSamplers(GLsizein,GLuint*samplers);

Description

glGenSamplers returns n sampler object names in samplers. There is no guarantee that the names form a
       contiguous set of integers; however, it is guaranteed that none of the returned names was in use
       immediately before the call to glGenSamplers.

       Sampler object names returned by a call to glGenSamplers are not returned by subsequent calls, unless
       they are first deleted with glDeleteSamplers().

       The names returned in samplers are marked as used, for the purposes of glGenSamplers only, but they
       acquire state and type only when they are first bound.

Errors

GL_INVALID_VALUE is generated if n is negative.

Name

       glGenSamplers - generate sampler object names

Notes

glGenSamplers is available only if the GL version is 3.3 or higher.

Parameters

n
           Specifies the number of sampler object names to generate.

       samplers
           Specifies an array in which the generated sampler object names are stored.

See Also

glBindSampler(), glIsSampler(), glDeleteSamplers()

Version Support

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

See Also