docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method cvtps_ph

    cvtps_ph(v128, int)

    Convert packed single-precision (32-bit) floating-point elements in a to packed half-precision (16-bit) floating-point elements, and store the results in dst.

    Rounding is done according to the rounding parameter, which can be one of:

    Declaration
    public static v128 cvtps_ph(v128 a, int rounding)
    Parameters
    Type Name Description
    v128 a

    Vector a

    int rounding

    Rounding mode

    Returns
    Type Description
    v128

    Vector

    Remarks

    **** cvtps2ph xmm, xmm, imm

    In This Article
    Back to top
    Copyright © 2025 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)