pack4xU8Clamp
Function
Packs a vec4u into a u32 as four bytes, clamping each component into [0, 255] first.
The signature and the sentence under each name are the compiler's own text at commit 26de7be8.
Syntax
declare function pack4xU8Clamp(a0: vec4u): u32declare function pack4xU8Clamp(e: vec4u): u32Parameters
-
evec4u
Return value
Description
WebGPU-only.
Targets
- WGSL
-
pack4xU8Clamp(a) - GLSL ES 3.00
- pack4xU8Clamp has no GLSL ES 3.00 form