ATOMICCOUNTERINCREME(3G)

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

πŸ’– ATOMICCOUNTERINCREME(3G) πŸ’–

okay bestie, welcome to the 3G corner of the manual, where we talk about GLSL's atomic counter functions. yes the header of this page literally says [FIXME: manual] β€” we don't talk about that πŸ™ˆ. anyway. sit down, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

atomicCounterIncrement β€” she atomically increments a counter and hands you back the value it had before she touched it. the way that's literally the whole personality 🫢


🌸 DECLARATION 🌸

uint atomicCounterIncrement(atomic_uint c);

that's it. that's the whole signature. iconic.


πŸŽ€ PARAMETERS πŸŽ€

  • c β€” the handle to the atomic counter you wanna increment. give her the counter, she does the thing πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

so atomicCounterIncrement atomically increments the value of the atomic counter c, and then returns its prior value. like, the value from before the increment. she's giving time-traveler energy honestly. no cap, she tells you where you were, not where you're going ✨


πŸ‘‘ VERSION SUPPORT πŸ‘‘

which versions of the OpenGL Shading Language are vibing with this function? let's do a vibe check 🌈

  • OpenGL Shading Language 1.10 β€” nope, not here πŸ’€
  • OpenGL Shading Language 1.20 β€” nope
  • OpenGL Shading Language 1.30 β€” nope
  • OpenGL Shading Language 1.40 β€” nope
  • OpenGL Shading Language 1.50 β€” nope
  • OpenGL Shading Language 3.30 β€” nope
  • OpenGL Shading Language 4.00 β€” nope
  • OpenGL Shading Language 4.10 β€” nope
  • OpenGL Shading Language 4.20 β€” βœ” yes bestie!!
  • OpenGL Shading Language 4.30 β€” βœ”
  • OpenGL Shading Language 4.40 β€” βœ”
  • OpenGL Shading Language 4.50 β€” βœ”

so basically she showed up in 4.20 and never left. main character energy since day one πŸ’…βœ¨


πŸ¦‹ SEE ALSO πŸ¦‹

  • atomicCounterDecrement()
  • atomicCounter()

go read those too, they're the friend group 🫢


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


and that's a wrap, bestie πŸŽ€ this lil page came from [FIXME: source], dated 01/03/2018, and she lives at ATOMICCOUNTERINCREME(3G). go forth and increment atomically, you absolute legend πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from