GLCREATESAMPLERS(3G)
okay so bestie, welcome to GLCREATESAMPLERS(3G) β the 3G manual page that is literally about creating sampler objects β¨ no cap, it's short and iconic.
πΈ NAME πΈ
glCreateSamplers β create sampler objects π
π» C SPECIFICATION π»
void glCreateSamplers(GLsizei n, GLuint *samplers);
π«Ά PARAMETERS π«Ά
nβ Number of sampler objects to create.samplersβ Specifies an array in which names of the new sampler objects are stored.
β¨ DESCRIPTION β¨
okay so here's the tea: glCreateSamplers returns n previously unused sampler names in samplers, and each one represents a new sampler object initialized to the default state. that's it, that's the whole vibe π
π ERRORS π
GL_INVALID_VALUE is generated if n is negative. yes, negative n is not the move bestie π
π VERSION SUPPORT π
The original table is giving Function / Feature Name vs. OpenGL Version, and for glCreateSamplers the version vibe check is:
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 yeah, 4.5 is the only one with the checkmark here π.
π SEE ALSO π
glBindSampler()glBindTexture()glDeleteSamplers()glDeleteTextures()glGenSamplers()glGenTextures()glGet()glGetSamplerParameter()glSamplerParameter()
π COPYRIGHT π
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 π (again, because the page says it twice)
Copyright Β© 2014 Khronos Group
cute sign-off: this page's footer source/version is [FIXME: source], and the date is 08/09/2021. byeee, go make those sampler objects slay π¦π
π¦ 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