docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method mask_i32gather_epi32

    mask_i32gather_epi32(v128, void*, v128, v128, int)

    Gather 32-bit integers from memory using 32-bit indices. 32-bit elements are loaded from addresses starting at base_addr and offset by each 32-bit element in vindex (each index is scaled by the factor in scale). Gathered elements are merged into dst using mask (elements are copied from src when the highest bit is not set in the corresponding element). scale should be 1, 2, 4 or 8.

    Declaration
    public static v128 mask_i32gather_epi32(v128 src, void* base_addr, v128 vindex, v128 mask, int scale)
    Parameters
    Type Name Description
    v128 src

    Source

    void* base_addr

    Base address

    v128 vindex

    Offset

    v128 mask

    Mask

    int scale

    Index scale

    Returns
    Type Description
    v128

    Vector

    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)