f32tof16
Description
Convert to 16-bit float stored in low bits of integer.
Signature
uint f32tof16(float value); vector<uint, N> f32tof16<N:int>(vector<float, N> value);
Generic Parameters
N : int
Parameters
value : float
value : vector<float, 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.