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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023