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 Β© 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 Β© 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