ALL(3G)

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

πŸ’– 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 Β© 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


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