docs.unity.cn
    Show / Hide Table of Contents

    Method f16tof32

    f16tof32(UInt32)

    Returns the floating point representation of a half-precision floating point value.

    Declaration
    public static float f16tof32(uint x)
    Parameters
    Type Name Description
    UInt32 x

    The half precision float.

    Returns
    Type Description
    Single

    The single precision float representation of the half precision float.

    f16tof32(uint2)

    Returns the floating point representation of a half-precision floating point vector.

    Declaration
    public static float2 f16tof32(uint2 x)
    Parameters
    Type Name Description
    uint2 x

    The half precision float vector.

    Returns
    Type Description
    float2

    The single precision float vector representation of the half precision float vector.

    f16tof32(uint3)

    Returns the floating point representation of a half-precision floating point vector.

    Declaration
    public static float3 f16tof32(uint3 x)
    Parameters
    Type Name Description
    uint3 x

    The half precision float vector.

    Returns
    Type Description
    float3

    The single precision float vector representation of the half precision float vector.

    f16tof32(uint4)

    Returns the floating point representation of a half-precision floating point vector.

    Declaration
    public static float4 f16tof32(uint4 x)
    Parameters
    Type Name Description
    uint4 x

    The half precision float vector.

    Returns
    Type Description
    float4

    The single precision float vector representation of the half precision float vector.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, March 29, 2022
    Terms of use