vec2b
On this page

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(): vec2b
declare function vec2b(x: bool, y: bool): vec2b
declare function vec2b(scalar: bool): vec2b
declare function vec2b(v: vec2b): vec2b
declare function vec2b(v: vec2): vec2b
declare function vec2b(v: vec2i): vec2b
declare function vec2b(v: vec2u): vec2b

Parameters

Return value

vec2b

Description

A comparison of two vec2 values yields one.

See also

Edit this page Report a problem