MIN(3G)

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

πŸ’– MIN(3G) β€” the min page, bestie edition πŸ’–

okay so this is MIN(3G), the manual page for min. she's short, she's sweet, she picks the smaller of two things, and honestly? she's the moment. πŸŽ€


✨ NAME ✨

min β€” return the lesser of two values πŸ‘‘


🌸 DECLARATION 🌸

here's every single glow-up of her signature, bestie. no notes, just vibes:

genType min(genType x, genType y);

genType min(genType x, float y);

genDType min(genDType x, genDType y);

genDType min(genDType x, double y);

genIType min(genIType x, genIType y);

genIType min(genIType x, int y);

genUType min(genUType x, genUType y);

genUType min(genUType x, uint y);

eight overloads. eight. she's booked and busy. πŸ’…


πŸ¦‹ PARAMETERS πŸ¦‹

  • x β€” this is the first value you're comparing. hand her over, she's ready. ✨
  • y β€” and this is the second value you're comparing. yes she's also invited. 🫢

🌈 DESCRIPTION 🌈

okay so real talk: min returns the minimum of the two parameters. and the way she does it is β€” she returns y if y is less than x, otherwise she returns x. that's it. that's the whole personality. lowkey iconic, highkey correct. πŸ‘‘

not me making the smallest thing in the room the main character. she literally is. πŸ’€

πŸ‘‘ VERSION SUPPORT πŸ‘‘

yes bestie, we're doing the full chart because every single detail matters and i'm not about to gatekeep. here's which OpenGL Shading Language versions fw with which flavor of min:

πŸ’œ min (genType)

all βœ”, no breaks, no skips β€” she's been serving since day one:

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

🧚 min (genIType)

she showed up late to the party but she ate regardless:

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

πŸ“ min (genUType)

same energy as her int sister, fr fr:

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

⭐ min (genDType)

the double-precision girlie. fashionably late (girl, 4.00??) but we forgive her:

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

πŸ”₯ SEE ALSO πŸ”₯

go give her friends some love too, they're all in the same group chat:

  • max()
  • abs()

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!! 🫢 this dropped from [FIXME: source] on 01/03/2018 (yes that's the date, she's a lil vintage and we love that for her), and it's page MIN(3G) forever and always. go pick the smaller number, you're doing amazing sweetie πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from