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

glDeleteSamplers - delete named sampler objects

Associated Gets

glIsSampler()

C Specification

voidglDeleteSamplers(GLsizein,constGLuint*samplers);

Description

glDeleteSamplers deletes n sampler objects named by the elements of the array samplers. After a sampler
       object is deleted, its name is again unused. If a sampler object that is currently bound to a sampler
       unit is deleted, it is as though glBindSampler() is called with unit set to the unit the sampler is bound
       to and sampler zero. Unused names in samplers are silently ignored, as is the reserved name zero.

Errors

GL_INVALID_VALUE is generated if n is negative.

Name

       glDeleteSamplers - delete named sampler objects

Notes

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

Parameters

n
           Specifies the number of sampler objects to be deleted.

       samplers
           Specifies an array of sampler objects to be deleted.

See Also

glGenSamplers(), glBindSampler(), glDeleteSamplers(), glIsSampler()

Version Support

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

See Also