vec2b
Function
Builds a vec2b from two bool scalars, broadcasts a single bool, or converts from a vec2 of a different element kind (nonzero is true).
The signature and the sentence under each name are the compiler's own text at commit 26de7be8.
Syntax
declare function vec2b(): vec2bdeclare function vec2b(x: bool, y: bool): vec2bdeclare function vec2b(scalar: bool): vec2bdeclare function vec2b(v: vec2b): vec2bdeclare function vec2b(v: vec2): vec2bdeclare function vec2b(v: vec2i): vec2bdeclare function vec2b(v: vec2u): vec2bParameters
Return value
vec2b
Description
A comparison of two vec2 values yields one.