docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method f16tof32

    f16tof32(uint)

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

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

    The half precision float.

    Returns
    Type Description
    float

    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)