ATOMICCOUNTER(3G)

πŸ“¦
version 1.0~svn33624 Β· 4 versions
, in ubuntu jammy, ubuntu noble

🌸 ATOMICCOUNTER β€” okay bestie, let's get into it (3G, if we're being formal πŸ’…)

Not me opening the manual for atomicCounter(3G) β€” this is the GLSL function that just looks at an atomic counter and tells you what number it's holding right now. No drama, no mutation, just a little peek. πŸ¦‹


✨ NAME ✨

atomicCounter β€” return the current value of an atomic counter πŸ’–


✨ DECLARATION ✨

uint atomicCounter(atomic_uint c);

✨ PARAMETERS ✨

  • c β€” the handle to the atomic counter whose value you're tryna read, bestie. Hand it over and it'll tell you what's inside. πŸ‘‘

✨ DESCRIPTION ✨

atomicCounter returns the current value of the atomic counter c. That's it. That's the whole thing. It's giving "lowkey simple, highkey useful" energy. ✨


✨ VERSION SUPPORT ✨

So here's the vibe check on which OpenGL Shading Language versions actually support this function. The columns are the GLSL versions, and our girl atomicCounter is rolling with the 4.20-and-up crowd only. No cap. 🫢

Function name: atomicCounter

  • 1.10 β€” not it πŸ’€
  • 1.20 β€” not it πŸ’€
  • 1.30 β€” not it πŸ’€
  • 1.40 β€” not it πŸ’€
  • 1.50 β€” not it πŸ’€
  • 3.30 β€” not it πŸ’€
  • 4.00 β€” not it πŸ’€
  • 4.10 β€” not it πŸ’€
  • 4.20 β€” βœ” slay πŸ‘‘
  • 4.30 β€” βœ” slay πŸ‘‘
  • 4.40 β€” βœ” slay πŸ‘‘
  • 4.50 β€” βœ” slay πŸ‘‘ (iconic, we love to see it)

✨ SEE ALSO ✨

Go be nosy, bestie, the whole squad is here:

  • atomicCounterIncrement()
  • atomicCounterDecrement()

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


fr fr, that's the entire page. Go increment something. Responsibly. πŸ’œ

And that's a wrap, gorgeous β€” this came out of [FIXME: source], dated 01/03/2018, on the ATOMICCOUNTER(3G) page. Periodt. πŸŽ€πŸŒˆ

πŸ“¦ where this page comes from