pack_u8
Description
Pack a vector of 4 unsigned 32 bit integers into a packed value of 4 8-bit integers, dropping unused bits.
Signature
uint8_t4_packed pack_u8(vector<uint, 4> unpackedValue); uint8_t4_packed pack_u8(vector<uint16_t, 4> unpackedValue);
Parameters
unpackedValue : vector<uint, 4>
unpackedValue : vector<uint16_t, 4>
Availability and Requirements
Defined for the following targets:
hlsl
Available in all stages.
glsl
Available in all stages.
cpp
Available in all stages.
cuda
Available in all stages.
metal
Available in all stages.
wgsl
Available in all stages.
spirv
Available in all stages.