LESSTHAN(3G)
β¨ LESSTHAN β¨ (that's the 3G manual, bestie π)
okay so real talk β the page header up top is literally just a [FIXME: manual] placeholder, iconic of the Khronos crew, and this whole thing lives in the 3G manual section. so grab a strawberry drink π and let's get into it.
πΈ NAME πΈ
lessThan β it does a component-wise less-than comparison of two vectors. that's it. that's the whole job. and it ate. π
π¦ DECLARATION π¦
here's the lineup, verbatim, no cap:
bvec lessThan(vec x, vec y);
bvec lessThan(ivec x, ivec y);
bvec lessThan(uvec x, uvec y);
three overloads, one for each flavor of vector. pick your fighter. π
π PARAMETERS π
xβ the first vector in the comparison operation. she goes first, main character energy.yβ the second vector in the comparison operation. she's the onexis being compared against.
π DESCRIPTION π
lessThan hands you back a boolean vector, and every element i in it is computed as:
x[i] < y[i]
so it's not asking "is this whole vector smaller", it's asking element by element, one by one, like a lil row of besties each doing their own vibe check. each answer comes back as a bool. periodt. β¨
β VERSION SUPPORT β
the original is a big sparkly grid of which OpenGL Shading Language versions support which overload β so here it is, un-gridded, nothing dropped:
lessThan(vec) β supported in1.10,1.20,1.30,1.40,1.50,3.30,4.00,4.10,4.20,4.30,4.40,4.50β β across the board, every single one.lessThan(ivec) β supported in1.10,1.20,1.30,1.40,1.50,3.30,4.00,4.10,4.20,4.30,4.40,4.50β β across the board again, she's been here since day one.lessThan(uvec) β1.10and1.20are a-(nope, not supported, she wasn't born yet π), but from1.30,1.40,1.50,3.30,4.00,4.10,4.20,4.30,4.40and4.50it's β all the way. late bloomer, still slayed. π«Ά
π SEE ALSO π
the whole friend group, go say hi:
lessThanEqual()greaterThan()greaterThanEqual()equal()notEqual()any()all()not()
iykyk, these are the comparison crew and they're all in the same group chat. π§
π 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 (yes, again, she said it twice and she meant it) π
Copyright Β© 2011-2014 Khronos Group
π heads up bestie: the source field in the footer is literally [FIXME: source] β a placeholder, not a real source. not me pointing out the manpage's own unresolved plotline. π
and that's a wrap on the 3G page, dated 01/03/2018, shipped under [FIXME: source] β the manpage equivalent of posting with no caption and letting the content speak for itself. obsessed. πβ¨π
π¦ 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