EQUAL(3G)
π 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 labeledxup 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 π
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 (again, yeah) π
Copyright Β© 2011-2014 Khronos Group
bestie quick heads up: the original header just says[FIXME: manual]and the footer is[FIXME: source]with the date01/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
- 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