LESSTHANEQUAL(3G)
π LESSTHANEQUAL π
okay bestie, sit down, we're talking about lessThanEqual from the OpenGL Shading Language family (the 3G manual, GLSL squad represent β¨). it's a teeny tiny comparison function and it's lowkey iconic.
πΈ NAME πΈ
lessThanEqual β does a component-wise less-than-or-equal comparison of two vectors. that's it. that's the whole vibe. π
β¨ DECLARATION β¨
here's the exact glow-up, no cap:
bvec lessThanEqual(vec x, vec y);
bvec lessThanEqual(ivec x, ivec y);
bvec lessThanEqual(uvec x, uvec y);
three overloads, three moods. π¦
π PARAMETERS π
xβ the first vector in the comparison operation. your opening act. the main character. πyβ the second vector in the comparison operation. the onexgets compared against. π«Ά
π DESCRIPTION π
lessThanEqual returns a boolean vector, and each element i in it is computed as:
x[i] β€ y[i]
so likeβ¦ element by element, bestie. it's giving "are you less than or equal to me or not" and the answer comes back as true/false for every single slot. no skips, no shortcuts, every component gets its moment. β¨
π₯ VERSION SUPPORT π₯
here's the whole availability timeline, and yes i'm listing every single version because we do not skip data in this house. the GLSL versions we're checking against are 1.10, 1.20, 1.30, 1.40, 1.50, 3.30, 4.00, 4.10, 4.20, 4.30, 4.40 and 4.50. π
lessThanEqual (vec)β β in1.10, β in1.20, β in1.30, β in1.40, β in1.50, β in3.30, β in4.00, β in4.10, β in4.20, β in4.30, β in4.40, β in4.50. literally every one. ate. πlessThanEqual (ivec)β β in1.10, β in1.20, β in1.30, β in1.40, β in1.50, β in3.30, β in4.00, β in4.10, β in4.20, β in4.30, β in4.40, β in4.50. also flawless. πlessThanEqual (uvec)β-in1.10,-in1.20, then β in1.30, β in1.40, β in1.50, β in3.30, β in4.00, β in4.10, β in4.20, β in4.30, β in4.40, β in4.50. she was late to the party but she showed up and she slayed. π
ngl theuvecversion didn't exist yet in1.10and1.20β that's what those little dashes mean. don't go looking for it there, bestie, it's not there. π
π¦ SEE ALSO π¦
the whole comparison-and-boolean friend group, go say hi:
lessThan(), greaterThan(), greaterThanEqual(), equal(), notEqual(), any(), all(), not()
π 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 one comes from the [FIXME: source] situation, dated 01/03/2018, and it's page LESSTHANEQUAL(3G) of the manual β so if you ever need to cite it, that's the receipt. mwah. πβ¨π§
π¦ 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