pack4xU8
함수
Packs the low byte of each component of a vec4u into a u32, component 0 in the low byte.
이름마다 붙은 시그니처와 설명은 커밋 26de7be8의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
declare function pack4xU8(a0: vec4u): u32declare function pack4xU8(e: vec4u): u32매개변수
-
evec4u
반환값
설명
A component that does not fit is TRUNCATED, not clamped; pack4xU8Clamp saturates instead. WebGPU-only.
대상별 출력
- WGSL
-
pack4xU8(a) - GLSL ES 3.00
- pack4xU8 has no GLSL ES 3.00 form