EQUAL(3G)

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

πŸŽ€ NAME πŸŽ€

equal β€” bestie, it does a component-wise equal-to comparison of two vectors ✨

(this one lives in the 3G manual section, iykyk πŸ’…)


✨ DECLARATION ✨

okay so here's the receipts, three whole flavors πŸ‘‘

bvec equal(vec x, vec y);

bvec equal(ivec x, ivec y);

bvec equal(uvec x, uvec y);

πŸ¦‹ PARAMETERS πŸ¦‹

  • x β€” the first vector getting pulled into the comparison πŸ’–
  • x β€” and this one is also labeled x up in the original, no cap, it's the second vector in the comparison operation πŸ™ˆ (yes the manpage really did that, we don't fix it, we just report it πŸ’€)

🌸 DESCRIPTION 🌸

So equal hands you back a boolean vector, and every single element i in it is computed like this:

x[i] == y[i]

that's it, that's the whole thing. component by component, element by element, slay by slay ✨


πŸ‘‘ VERSION SUPPORT πŸ‘‘

The way equal has been supported in basically every OpenGL Shading Language version since forever, main character energy fr fr 🌈

  • OpenGL Shading Language Version 1.10 β€” βœ”
  • OpenGL Shading Language Version 1.20 β€” βœ”
  • OpenGL Shading Language Version 1.30 β€” βœ”
  • OpenGL Shading Language Version 1.40 β€” βœ”
  • OpenGL Shading Language Version 1.50 β€” βœ”
  • OpenGL Shading Language Version 3.30 β€” βœ”
  • OpenGL Shading Language Version 4.00 β€” βœ”
  • OpenGL Shading Language Version 4.10 β€” βœ”
  • OpenGL Shading Language Version 4.20 β€” βœ”
  • OpenGL Shading Language Version 4.30 β€” βœ”
  • OpenGL Shading Language Version 4.40 β€” βœ”
  • OpenGL Shading Language Version 4.50 β€” βœ”

not a single ❌ in the whole table, obsessed πŸ˜­πŸ’–


🫢 SEE ALSO 🫢

the whole friend group, go say hi:

  • lessThan()
  • lessThanEqual()
  • greaterThan()
  • greaterThanEqual()
  • 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


bestie quick heads up: the original header just says [FIXME: manual] and the footer is [FIXME: source] with the date 01/03/2018, and the whole thing is filed under EQUAL(3G). that's a wrap, ily, go compare some vectors πŸ’…βœ¨πŸ’–
πŸ“¦ where this page comes from