f16tof32

Description

Convert 16-bit float stored in low bits of integer

Signature

float f16tof32(uint value);

vector<float, N> f16tof32<int N>(vector<uint, N> value);

float f16tof32(half value);

vector<float, N> f16tof32<int N>(vector<half, N> value);

Generic Parameters

N : int

Parameters

value : uint

value : vector<uint, N>

value : half

value : vector<half, N>

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.