ATOMICCOUNTERDECREME(3G)

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

πŸ‘‘ ATOMICCOUNTERDECREMENT (3G) πŸ‘‘

okay bestie, pull up a chair because we're talking about atomicCounterDecrement from the 3G manual section, and honestly? it's giving tiny-but-mighty. it does one (1) thing and it does it atomically. no cap. πŸ’…


✨ NAME ✨

atomicCounterDecrement β€” atomically decrement a counter and return the prior value πŸŽ€


🌸 DECLARATION 🌸

like, here's the whole entire vibe, character for character:

uint atomicCounterDecrement(atomic_uint c);

she's short. she's precise. she's iconic. πŸ‘‘


πŸ’– PARAMETERS πŸ’–

  • c β€” this is the handle to the atomic counter you're about to decrement, so hand her the right one bestie 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so atomicCounterDecrement atomically decrements the value of the atomic counter c and returns its new value. yes, atomically β€” as in, nobody else can sneak in halfway and mess with it. main character energy only. ✨


πŸ’€ VERSION SUPPORT πŸ’€

here's the vibe check on which OpenGL Shading Language versions show up for atomicCounterDecrement. a βœ” means she's there, a - means she is literally not invited:

  • 1.10 β€” - (not invited πŸ™ˆ)
  • 1.20 β€” - (not invited πŸ™ˆ)
  • 1.30 β€” - (not invited πŸ™ˆ)
  • 1.40 β€” - (not invited πŸ™ˆ)
  • 1.50 β€” - (not invited πŸ™ˆ)
  • 3.30 β€” - (not invited πŸ™ˆ)
  • 4.00 β€” - (not invited πŸ™ˆ)
  • 4.10 β€” - (not invited πŸ™ˆ)
  • 4.20 β€” βœ” (she ate πŸ’…)
  • 4.30 β€” βœ” (she ate πŸ’…)
  • 4.40 β€” βœ” (she ate πŸ’…)
  • 4.50 β€” βœ” (she ate πŸ’…)

so like, from 4.20 onward she's fully that girl. before that? nothing. zero. silence. 😭


πŸ”₯ SEE ALSO πŸ”₯

go read these next, bestie, they're the whole friend group:

  • atomicCounterIncrement()
  • atomicCounter()

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


ngl the legal girlies stay winning and we respect them 🌈

and that's the whole page, bestie! this one came from the source tagged [FIXME: source], dated 01/03/2018, and it lives under the ATOMICCOUNTERDECREME(3G) manual name. obsessed with her fr fr. bye πŸ’–πŸ§šβ­

πŸ“¦ where this page comes from