unpack4xI8
On this page

unpack4xI8

Function

Unpacks the four bytes of a u32 into a vec4i, sign-extending each byte, 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 unpack4xI8(a0: u32): vec4i
declare function unpack4xI8(e: u32): vec4i

Parameters

Return value

vec4i

Description

The inverse of pack4xI8. WebGPU-only.

Targets

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

Examples

See also

Edit this page Report a problem