vec4b
Function
Builds a vec4b from four bool scalars, a vec3b and a scalar, a vec2b and two scalars, broadcasts a single bool, or converts from a vec4 of a different element kind.
The signature and the sentence under each name are the compiler's own text at commit 26de7be8.
Syntax
declare function vec4b(): vec4bdeclare function vec4b(x: bool, y: bool, z: bool, w: bool): vec4bdeclare function vec4b(v: vec3b, w: bool): vec4bdeclare function vec4b(v: vec2b, z: bool, w: bool): vec4bdeclare function vec4b(x: bool, v: vec2b, w: bool): vec4bdeclare function vec4b(x: bool, y: bool, v: vec2b): vec4bdeclare function vec4b(x: bool, v: vec3b): vec4bdeclare function vec4b(a: vec2b, b: vec2b): vec4bdeclare function vec4b(scalar: bool): vec4bdeclare function vec4b(v: vec4b): vec4bdeclare function vec4b(v: vec4): vec4bdeclare function vec4b(v: vec4i): vec4bdeclare function vec4b(v: vec4u): vec4bParameters
Return value
vec4b
Description
A comparison of two vec4 values yields one.