ALL(3G)
π ALL(3G) β the manual page, but make it make sense π
okay bestie, welcome to ALL(3G) β yes that's the manual section name, it's giving shader library, it's giving Khronos, we love her π
β¨ NAME β¨
all β check whether all elements of a boolean vector are true π
πΈ DECLARATION πΈ
like, here's the whole entire vibe, no notes:
bool all(bvec x);
π¦ PARAMETERS π¦
xβ the vector you're testing for truth. that's it. that's the whole input. she's simple, she's iconic π
π DESCRIPTION π
so all returns true if every single element of x is true, and false otherwise. periodt. π
and fr fr, it's functionally equivalent to this little cutie right here:
bool all(bvec x) // bvec can be bvec2, bvec3 or bvec4
{
bool result = true;
int i;
for (i = 0; i < x.length(); ++i)
{
result &= x[i];
}
return result;
}
likeβ¦ it literally just loops through and ANDs everything together. main character energy but make it a for loop π
π VERSION SUPPORT π
okay so here's the thing β all has been showing up and slaying in every OpenGL Shading Language version listed. yes, every single one. no skips, no gaps, she's a consistent queen π
Function Name: all
OpenGL Shading Language Version:
1.10β β1.20β β1.30β β1.40β β1.50β β3.30β β4.00β β4.10β β4.20β β4.30β β4.40β β4.50β β
twelve for twelve, ate and left no crumbs π₯
π«Ά SEE ALSO π«Ά
go give these girls a read too, they're in the same friend group:
any()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, because she said it twice and she meant it) π
Copyright Β© 2011-2014 Khronos Group
lowkey important: the original page literally has two COPYRIGHT sections back to back. not a typo on my end, bestie β that's just how she is. we respect the canon π
and that's the whole page, mwah π
source is [FIXME: source], date is 01/03/2018, and the manual is ALL(3G) β that's the footer, but I'm telling you about it here instead because we're besties and footers are for people who don't know each other yet π¦β¨πΈ
π¦ 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