GLSAMPLEMASKI(3G)

okay so you clicked into the GLSAMPLEMASKI(3G) page from [FIXME: manual], and it's literally all about glSampleMaski πŸŽ€ buckle up bestie, this one's short but iconic.

✨ NAME ✨

glSampleMaski β€” set the value of a sub-word of the sample mask πŸ’…

πŸŽ€ C SPECIFICATION πŸŽ€

void glSampleMaski(GLuint maskNumber, GLbitfield mask);

🌸 PARAMETERS 🌸

  • maskNumber β€” specifies which 32-bit sub-word of the sample mask to update. pick your little slice, bestie πŸ“
  • mask β€” specifies the new value of the mask sub-word. that's the fresh value, periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so glSampleMaski sets one 32-bit sub-word of the multi-word sample mask, GL_SAMPLE_MASK_VALUE. no cap, that's the whole vibe.

maskIndex specifies which 32-bit sub-word of the sample mask to update, and mask specifies the new value to use for that sub-word. maskIndex must be less than the value of GL_MAX_SAMPLE_MASK_WORDS. Bit B of mask word M corresponds to sample 32 x M + B. iykyk πŸ”₯

πŸ’€ NOTES πŸ’€

this function glSampleMaski is available only if the GL version is 3.2 or greater, or if the ARB_texture_multisample extension is supported. that's the vibe check, bestie 🫢

🚨 ERRORS 🚨

warning, bestie: GL_INVALID_VALUE is generated if maskIndex is greater than or equal to the value of GL_MAX_SAMPLE_MASK_WORDS. do not pass go, do not collect $200 😭

πŸ‘‘ VERSION SUPPORT πŸ‘‘

okay so here's the support grid, row by row β€” function / feature name: glSampleMaski ✨

  • OpenGL 2.0 β€” -
  • OpenGL 2.1 β€” -
  • OpenGL 3.0 β€” -
  • OpenGL 3.1 β€” -
  • OpenGL 3.2 β€” βœ”
  • OpenGL 3.3 β€” βœ”
  • OpenGL 4.0 β€” βœ”
  • OpenGL 4.1 β€” βœ”
  • OpenGL 4.2 β€” βœ”
  • OpenGL 4.3 β€” βœ”
  • OpenGL 4.4 β€” βœ”
  • OpenGL 4.5 β€” βœ”

🌈 SEE ALSO 🌈

  • glGenRenderbuffers()
  • glBindRenderbuffer()
  • glRenderbufferStorageMultisample()
  • glFramebufferRenderbuffer()
  • glDeleteRenderbuffers()

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 Β© 2010-2014 Khronos Group


okay that's the page, bestie! source/version: [FIXME: source]; date: 08/09/2021; manual: GLSAMPLEMASKI(3G). go forth and mask those samples πŸ’…βœ¨

πŸ“¦ where this page comes from