pack4xI8Clamp
Function
Packs a vec4i into a u32 as four bytes, clamping each component into [-128, 127] first.
The signature and the sentence under each name are the compiler's own text at commit 26de7be8.
Syntax
declare function pack4xI8Clamp(a0: vec4i): u32declare function pack4xI8Clamp(e: vec4i): u32Parameters
-
evec4i
Return value
Description
The result is unsigned because it is a word of bytes, not a number with a sign. WebGPU-only.
Targets
- WGSL
-
pack4xI8Clamp(a) - GLSL ES 3.00
- pack4xI8Clamp has no GLSL ES 3.00 form