pack2x16float
On this page

pack2x16float

Function

Packs a vec2 into two IEEE-754 binary16 halves of a u32, component 0 in the low 16 bits.

The signature and the sentence under each name are the compiler's own text at commit 26de7be8.

Syntax

declare function pack2x16float(a0: vec2): u32
declare function pack2x16float(e: vec2): u32

Parameters

Return value

u32

Description

packHalf2x16 on GLSL ES 3.00.

Targets

WGSL
pack2x16float(a)
GLSL ES 3.00
packHalf2x16(a)

Examples

See also

Edit this page Report a problem