title | description | ms.assetid | keywords | topic_type | api_name | api_type | ms.topic | ms.date | api_location | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f16tof32 function |
Converts the float16 stored in the low-half of the uint to a float. |
66b37ce4-e8b6-450a-a4da-a8f8b07340ab |
|
|
|
|
reference |
05/31/2018 |
Converts the float16 stored in the low-half of the uint to a float.
float f16tof32(
in uint value
);
-
value [in]
-
Type: uint
The input value.
Type: float
The converted value.
The following overloaded versions are also available:
float2 f16tof32(uint2 value);
float3 f16tof32(uint3 value);
float4 f16tof32(uint4 value);
This function is supported in the following shader models.
Shader Model | Supported |
---|---|
Shader Model 4 and higher shader models | yes |
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:
Vertex | Hull | Domain | Geometry | Pixel | Compute |
---|---|---|---|---|---|
x | x | x | x | x | x |