abs
all
any
cos
ddx
ddy
dot
dst
exp
fma
lit
log
mad
max
min
mul
pow
rcp
sin
tan
Expand Minimize

f16tof32 function

Converts the float16 stored in the low-half of the uint to a float.

Syntax

float f16tof32(
  in  uint value
);

Parameters

value [in]

Type: uint

The input value.

Return value

Type: float

The converted value.

Remarks

The following overloaded versions are also available:


float2 f16tof32(uint2 value);
float3 f16tof32(uint3 value);
float4 f16tof32(uint4 value);

Minimum Shader Model

This function is supported in the following shader models.

Shader ModelSupported
Shader Model 4 and higher shader modelsyes

 

Although this function is available in Shader Model 4 and higher shader models, because it is emulated in 4.0 and 4.1, it is less perfomant on these shader models than it is on Shader Model 5.

This function is supported in the following types of shaders:

VertexHullDomainGeometryPixelCompute
xxxxxx

 

See also

Shader Model 5

 

 

Community Additions

ADD
Show:
© 2014 Microsoft