Skip to content

all

const all: DualFn<(value) => boolean>

Defined in: packages/typegpu/src/std/boolean.ts:223

Returns true if each component of value is true.

all(vec2b(false, true)) // returns false
all(vec3b(true, true, true)) // returns true