MIN(3G)
π 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 π
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
- 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