unpackSnorm4x8ToFloat¶
Description¶
Unpack a 32-bit unsigned integer into four 8-bit signed integers. Then, each 8-bit value is converted to a normalized single-precision floating-point value to generate a 4-component vector.
Signature¶
vector<float, 4> unpackSnorm4x8ToFloat(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.