NOTEQUAL(3G)
β¨ NAME β¨
okay so bestie, welcome to the NOTEQUAL(3G) page β this is notEqual, and what she does is perform a component-wise not-equal-to comparison of two vectors. that's the whole job. she does it flawlessly. periodt.
π«Ά DECLARATION π«Ά
here's the exact signature tea, copied character for character so nobody comes for me:
bvec notEqual(vec x, vec y);
bvec notEqual(ivec x, ivec y);
bvec notEqual(uvec x, uvec y);
three flavors, same energy. float, int, uint. she's versatile like that π
πΈ PARAMETERS πΈ
xβ specifies the first vector to be used in the comparison operation. the one doing the comparing. the main character, lowkey.yβ specifies the second vector to be used in the comparison operation. the one getting compared against. also important, we stan a duo π«Ά
π DESCRIPTION π
so here's the lore: notEqual returns a boolean vector, right? and each element i of that vector is computed as:
x[i] != y[i]
that's it. component by component, no skipping, no shortcuts, no cap. if they're not equal you get the boolean truth, if they are equal you don't. iconic behavior fr fr π₯
π VERSION SUPPORT π
okay so the original had this whole giant grid situation, but bestie, tables are not it, so we're doing this as lists instead. every single checkmark and every single dash is still here, i promise, i would never gatekeep π
these are the OpenGL Shading Language Version numbers: 1.10, 1.20, 1.30, 1.40, 1.50, 3.30, 4.00, 4.10, 4.20, 4.30, 4.40, 4.50.
π¦ notEqual (vec) β the float girlie
1.10,1.20,1.30,1.40,1.50,3.30,4.00,4.10,4.20,4.30,4.40,4.50β β she was there from day one and she never left. consistent queen π
π notEqual (ivec) β the int girlie
1.10,1.20β-nope, not invited yet π1.30,1.40,1.50,3.30,4.00,4.10,4.20,4.30,4.40,4.50β β arrived in1.30and has been slaying ever since β¨
π notEqual (uvec) β the uint girlie
1.10,1.20β-also not invited yet, she's fashionably late π1.30,1.40,1.50,3.30,4.00,4.10,4.20,4.30,4.40,4.50β β same glow-up timeline asivec, we love to see it πΈ
π SEE ALSO π
if you liked this one, the whole friend group is here:
lessThan()lessThanEqual()greaterThan()greaterThanEqual()equal()any()all()not()
go read them too, they're all giving β¨
π 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 π
Copyright Β© 2011-2014 Khronos Group
okay that's the whole page bestie, you ate reading all of it π and for the cute sign-off: this came from [FIXME: source], dated 01/03/2018, filed under NOTEQUAL(3G). go forth and compare things component-wise, you absolute icon π¦π
π¦ 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