pack4xI8
이 페이지에서

pack4xI8

함수

Packs the low byte of each component of a vec4i into a u32, four bytes in a word.

이름마다 붙은 시그니처와 설명은 커밋 26de7be8의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

declare function pack4xI8(a0: vec4i): u32
declare function pack4xI8(e: vec4i): u32

매개변수

반환값

u32

설명

The result is unsigned even though the components are not; a component that does not fit is TRUNCATED, where pack4xI8Clamp saturates. WebGPU-only.

대상별 출력

WGSL
pack4xI8(a)
GLSL ES 3.00
pack4xI8 has no GLSL ES 3.00 form

예제

함께 보기

이 페이지 편집 문제 보고