pack4xI8
Function
Packs the low byte of each component of a vec4i into a u32, four bytes in a word.
The signature and the sentence under each name are the compiler's own text at commit 26de7be8.
Syntax
declare function pack4xI8(a0: vec4i): u32declare function pack4xI8(e: vec4i): u32Parameters
-
evec4i
Return value
Description
The result is unsigned even though the components are not; a component that does not fit is TRUNCATED, where pack4xI8Clamp saturates. WebGPU-only.
Targets
- WGSL
-
pack4xI8(a) - GLSL ES 3.00
- pack4xI8 has no GLSL ES 3.00 form