Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Component-wise float16 to float32 conversion.
| f32tof16 dest[.mask], [-]src0[.swizzle] |
|---|
| Item | Description |
|---|---|
| dest |
[in] The address of float16 result. |
| src0 |
[in] The float32 value to convert. |
Remarks
This instruction performs a component-wise conversion of a float32 value to a float16 value result placed in LSB 16 bits.
This instruction follows D3D rules for floating point conversion.
Use this instruction for shader-driven data compression.
This instruction applies to the following shader stages:
| Vertex | Hull | Domain | Geometry | Pixel | Compute |
|---|---|---|---|---|---|
| X | X | X | X | X | X |
Minimum Shader Model
This instruction is supported in the following shader models:
| Shader Model | Supported |
|---|---|
| Shader Model 5 | yes |
| Shader Model 4.1 | no |
| Shader Model 4 | no |
| Shader Model 3 (DirectX HLSL) | no |
| Shader Model 2 (DirectX HLSL) | no |
| Shader Model 1 (DirectX HLSL) | no |