unpackUnorm4x8ToHalf¶
Description¶
Unpack a 32-bit unsigned integer into four 8-bit unsigned integers. Then, each 8-bit value is converted to a normalized half-precision floating-point value to generate a 4-component vector.
Signature¶
vector<half, 4> unpackUnorm4x8ToHalf(uint packedValue);
Parameters¶
packedValue : uint¶
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.
llvm¶
Available in all stages.