LESSTHAN(3G)

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

✨ 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 one x is 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 in 1.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 in 1.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.10 and 1.20 are a - (nope, not supported, she wasn't born yet 😭), but from 1.30, 1.40, 1.50, 3.30, 4.00, 4.10, 4.20, 4.30, 4.40 and 4.50 it'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 Β© 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


πŸ’€ 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