ABS(3G)

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

✨ ABS(3G) ✨

okay bestie, welcome to the ABS page from the <3G> manual section β€” yes that's the OpenGL shading language corner of the man-verse, and no you don't have to be scared, it's literally just "gimme the absolute value" energy πŸ’…


🌸 NAME 🌸

abs β€” return the absolute value of the parameter


πŸŽ€ DECLARATION πŸŽ€

here's the three glow-ups of the same function, pick the one that matches your type bestie:

genType abs(genType x);

genIType abs(genIType x);

genDType abs(genDType x);

πŸ¦‹ PARAMETERS πŸ¦‹

  • x β€” the value you want the absolute of. hand it over, we're taking the absolute. ✨

πŸ’– DESCRIPTION πŸ’–

abs returns the absolute value of x. that's it. that's the whole vibe. no cap, it just eats the minus sign for breakfast and hands you back a non-negative number like the icon it is πŸ‘‘


πŸ‘‘ VERSION SUPPORT πŸ‘‘

so here's the tea on which OpenGL Shading Language versions each overload showed up for β€” because yes, not all of them were invited to the party from day one πŸ™ˆ

The columns are the GLSL versions: 1.10, 1.20, 1.30, 1.40, 1.50, 3.30, 4.00, 4.10, 4.20, 4.30, 4.40, 4.50. A βœ” means supported, a - means not supported (yet, or ever).

✨ abs (genType)

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

okay this one has been main character since day one, she's been supported in literally every single version, periodt πŸ’…

🌈 abs (genIType)

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

she was fashionably late to 1.10 and 1.20, showed up at 1.30 and never left the group chat 🫢

πŸ“ abs (genDType)

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

ngl this one was lowkey in her hermit era for a WHILE, ghosting 1.10 all the way through 4.00, and then finally said hi in 4.10 and has been thriving ever since πŸ˜­πŸ’œ


πŸ”₯ SEE ALSO πŸ”₯

  • sign() β€” the other half of the "which way are you pointing" duo, go say hi πŸ‘‹

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 the whole page bestie, you're now fluent in abs πŸ’…βœ¨

okay so this little legend came out of [FIXME: source] and it's dated 01/03/2018 β€” shoutout to whoever shipped it, we love you, mwah πŸŽ€ and remember: <3G> stands for the OpenGL shading language section, iykyk 🌸

πŸ“¦ where this page comes from