GREATERTHAN(3G)
π 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 theuvecversion showing up late to the party at1.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 π
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 (yes, again, she said it twice) π
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
- 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