GLDELETESAMPLERS(3G)
πΈ NAME πΈ
okay so this is glDeleteSamplers from the 3G manual section β the one that deletes named sampler objects, and honestly? It's giving cleanup-era main character energy π
β¨
β¨ C SPECIFICATION β¨
bestie, here's the exact signature, don't touch it:
void glDeleteSamplers(GLsizei n, const GLuint * samplers);
π PARAMETERS π
nβ the number of sampler objects you're yeeting out of existence. like, how many.samplersβ an array of the sampler objects getting deleted. the whole squad.
π DESCRIPTION π
So glDeleteSamplers deletes n sampler objects named by the elements of the array samplers. That's it, that's the job π«Ά
After a sampler object is deleted, its name is again unused β so it goes back into the name pool, fresh start, rebrand era π
If a sampler object that is currently bound to a sampler unit gets deleted, it's as though glBindSampler() is called with unit set to the unit the sampler is bound to and sampler zero. so like, the unit auto-unbinds itself, no drama π
Unused names in samplers are silently ignored, as is the reserved name zero. no error, no callout, they just get skipped. we love a chill function π
π NOTES π
glDeleteSamplers is available only if the GL version is 3.3 or higher. periodt.
π ERRORS π
GL_INVALID_VALUEis generated ifnis negative. so like, don't do that π
π₯ ASSOCIATED GETS π₯
glIsSampler()
π¦ VERSION SUPPORT π¦
Okay so the chart in the original is this whole grid, and I'm not doing a table here, so let me just spill the tea plainly. The function/feature name in the row is glDeleteSamplers, and across the OpenGL versions it looks like this:
- 2.0 β
- - 2.1 β
- - 3.0 β
- - 3.1 β
- - 3.2 β
β - 3.3 β
β - 4.0 β
β - 4.1 β
β - 4.2 β
β - 4.3 β
β - 4.4 β
β - 4.5 β
β
(the column headers in the original are literally just "OpenGL Version" and then each version number, and the row label is the function / feature name. iykyk β¨)
πΊ SEE ALSO πΊ
glGenSamplers()glBindSampler()glDeleteSamplers()glIsSampler()
(yes, glDeleteSamplers() is listed in its own SEE ALSO. iconic self-reference behavior, we keep it exactly as-is π
)
π 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 (yes, again π)
Copyright Β© 2010-2014 Khronos Group
and that's the whole page bestie π«Ά mwah π β this little love letter came from [FIXME: source] and it's dated 08/09/2021, so go forth and delete those samplers responsibly, no cap βππ§
π¦ 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