unpack4xU8
On this page

unpack4xU8

Function

Unpacks the four bytes of a u32 into a vec4u, the low byte into component 0.

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

Syntax

declare function unpack4xU8(a0: u32): vec4u
declare function unpack4xU8(e: u32): vec4u

Parameters

Return value

vec4u

Description

The inverse of pack4xU8. WebGPU-only.

Targets

WGSL
unpack4xU8(a)
GLSL ES 3.00
unpack4xU8 has no GLSL ES 3.00 form

Examples

See also

Edit this page Report a problem