and
constand:DualFn<<T>(lhs,rhs) =>ToBool<T>>
Defined in: packages/typegpu/src/std/boolean.ts:273
Returns component-wise logical and result.
Example
Section titled “Example”and(vec2b(false, true), vec2b(true, true)) // returns vec2b(false, true)and(vec3b(true, true, false), vec3b(false, true, false)) // returns vec3b(false, true, false)© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.