GREATERTHAN(3G)

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

πŸ’– GREATERTHAN πŸ’–

okay bestie, we're in the 3G manual section and this page is literally about greaterThan β€” a component-wise greater-than comparison of two vectors. that's it, that's the whole vibe. πŸ¦‹


✨ NAME ✨

greaterThan β€” perform a component-wise greater-than comparison of two vectors


🌸 DECLARATION 🌸

here's the receipts, copy them exactly bestie:

bvec greaterThan(vec x, vec y);

bvec greaterThan(ivec x, ivec y);

bvec greaterThan(uvec x, uvec y);

πŸŽ€ PARAMETERS πŸŽ€

  • x β€” the first vector going into the comparison operation. that's your left-hand girly. πŸ’…
  • y β€” the second vector going into the comparison operation. and that's the one she's being compared against.

πŸ‘‘ DESCRIPTION πŸ‘‘

greaterThan returns a boolean vector where each element i is computed as x[i] > y[i].

so like, one comparison per component, no skips, no shortcuts. every element gets asked "are you bigger than your counterpart?" and answers with a true or false. slay. ✨


🌈 VERSION SUPPORT 🌈

vibe check on the OpenGL Shading Language versions, per function overload. here's who showed up and who did not:

  • greaterThan (vec) β€” 1.10 βœ”, 1.20 βœ”, 1.30 βœ”, 1.40 βœ”, 1.50 βœ”, 3.30 βœ”, 4.00 βœ”, 4.10 βœ”, 4.20 βœ”, 4.30 βœ”, 4.40 βœ”, 4.50 βœ”
  • greaterThan (ivec) β€” 1.10 βœ”, 1.20 βœ”, 1.30 βœ”, 1.40 βœ”, 1.50 βœ”, 3.30 βœ”, 4.00 βœ”, 4.10 βœ”, 4.20 βœ”, 4.30 βœ”, 4.40 βœ”, 4.50 βœ”
  • greaterThan (uvec) β€” 1.10 -, 1.20 -, 1.30 βœ”, 1.40 βœ”, 1.50 βœ”, 3.30 βœ”, 4.00 βœ”, 4.10 βœ”, 4.20 βœ”, 4.30 βœ”, 4.40 βœ”, 4.50 βœ”
not the uvec version showing up late to the party at 1.30 πŸ’€ but she ate once she got there, periodt.

🫢 SEE ALSO 🫢

the whole friend group, iykyk:

  • lessThan()
  • lessThanEqual()
  • 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, no cap. this one came from [FIXME: source] and it's dated 01/03/2018, filed under GREATERTHAN(3G) β€” go forth and compare those vectors, you absolute icon πŸ’–πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from