Skip to content

allEq

allEq<T>(lhs, rhs): boolean

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

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

T extends AnyVecInstance

T

T

boolean

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