LESSTHANEQUAL(3G)

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

πŸ’– 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 one x gets 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) β€” βœ” in 1.10, βœ” in 1.20, βœ” in 1.30, βœ” in 1.40, βœ” in 1.50, βœ” in 3.30, βœ” in 4.00, βœ” in 4.10, βœ” in 4.20, βœ” in 4.30, βœ” in 4.40, βœ” in 4.50. literally every one. ate. πŸ’…
  • lessThanEqual (ivec) β€” βœ” in 1.10, βœ” in 1.20, βœ” in 1.30, βœ” in 1.40, βœ” in 1.50, βœ” in 3.30, βœ” in 4.00, βœ” in 4.10, βœ” in 4.20, βœ” in 4.30, βœ” in 4.40, βœ” in 4.50. also flawless. πŸ‘‘
  • lessThanEqual (uvec) β€” - in 1.10, - in 1.20, then βœ” in 1.30, βœ” in 1.40, βœ” in 1.50, βœ” in 3.30, βœ” in 4.00, βœ” in 4.10, βœ” in 4.20, βœ” in 4.30, βœ” in 4.40, βœ” in 4.50. she was late to the party but she showed up and she slayed. 😭
ngl the uvec version didn't exist yet in 1.10 and 1.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 Β© 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