all
all(
value
):boolean
Defined in: packages/typegpu/src/std/boolean.ts:229
Returns true
if each component of value
is true.
Parameters
Section titled “Parameters”AnyBooleanVecInstance
Returns
Section titled “Returns”boolean
Example
Section titled “Example”all(vec2b(false, true)) // returns falseall(vec3b(true, true, true)) // returns true