unpackHalf2x16ToHalf¶
Description¶
Unpack a 32-bit unsigned integer into two 16-bit signed integers. Then, each 16-bit value is converted to an IEEE-754 binary16 half-precision floating-point value to generate a 2-component vector.
Signature¶
vector<half, 2> unpackHalf2x16ToHalf(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.