Skip to content

allEq

const allEq: DualFn<<T>(lhs, rhs) => boolean>

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

Checks whether lhs == rhs on all components. Equivalent to all(eq(lhs, rhs)).

allEq(vec2f(0.0, 1.0), vec2f(0.0, 2.0)) // returns false
allEq(vec3u(0, 1, 2), vec3u(0, 1, 2)) // returns true