pack4xU8
Function
Packs the low byte of each component of a vec4u into a u32, component 0 in the low byte.
The signature and the sentence under each name are the compiler's own text at commit 26de7be8.
Syntax
declare function pack4xU8(a0: vec4u): u32declare function pack4xU8(e: vec4u): u32Parameters
-
evec4u
Return value
Description
A component that does not fit is TRUNCATED, not clamped; pack4xU8Clamp saturates instead. WebGPU-only.
Targets
- WGSL
-
pack4xU8(a) - GLSL ES 3.00
- pack4xU8 has no GLSL ES 3.00 form