GL_NUMSAMPLES(3G)

okay so this is the GL_NUMSAMPLES(3G) page from the OpenGL manual β€” section 3G, bestie β€” and the header has a lil [FIXME: manual] placeholder because apparently even Khronos pages have unfinished homework. ✨

🌸 NAME 🌸

gl_NumSamples β€” contains the total number of samples in the framebuffer. periodt. πŸ’…

πŸŽ€ DECLARATION πŸŽ€

Actual declaration:

in bool gl_NumSamples ;

And the raw source line is this exact messy girl:

in bool gl_NumSamples ;.SH "DESCRIPTION"

(that .SH "DESCRIPTION" bit is formatting stuff glued onto the line, not part of the variable β€” no cap. πŸ™ˆ)

πŸ’… DESCRIPTION πŸ’…

gl_NumSamples is a fragment language input variable that contains the number of samples in the framebuffer, or 1 if rendering to a non-multisample framebuffer. It is the sample count of the framebuffer regardless of whether multisample rasterization is enabled or not. Lowkey simple, highkey useful. πŸ¦‹

πŸ¦‹ VERSION SUPPORT πŸ¦‹

Variable Name: gl_NumSamples

OpenGL Shading Language Version: exact entries below, bestie:

  • 1.10 β€” -
  • 1.20 β€” -
  • 1.30 β€” -
  • 1.40 β€” -
  • 1.50 β€” -
  • 3.30 β€” -
  • 4.00 β€” βœ”
  • 4.10 β€” βœ”
  • 4.20 β€” βœ”
  • 4.30 β€” βœ”
  • 4.40 β€” βœ”
  • 4.50 β€” βœ”

πŸ”₯ SEE ALSO πŸ”₯

  • gl_SamplePosition()
  • gl_SampleID()

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


xoxo, your Unix bestie πŸ’… β€” source/version: [FIXME: source]; date: 08/09/2021; manual: GL_NUMSAMPLES(3G). πŸŽ€

πŸ“¦ where this page comes from