ATOMICCOUNTERINCREME(3G)
π 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 π§
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 π
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
- ubuntu jammy: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- ubuntu noble: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms