docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor v128

    v128(byte)

    Splat a single byte across the v128

    Declaration
    public v128(byte b)
    Parameters
    Type Name Description
    byte b

    Splatted byte.

    v128(byte, byte, byte, byte, byte, byte, byte, byte, byte, byte, byte, byte, byte, byte, byte, byte)

    Initialize the v128 with 16 bytes

    Declaration
    public v128(byte a, byte b, byte c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k, byte l, byte m, byte n, byte o, byte p)
    Parameters
    Type Name Description
    byte a

    byte a.

    byte b

    byte b.

    byte c

    byte c.

    byte d

    byte d.

    byte e

    byte e.

    byte f

    byte f.

    byte g

    byte g.

    byte h

    byte h.

    byte i

    byte i.

    byte j

    byte j.

    byte k

    byte k.

    byte l

    byte l.

    byte m

    byte m.

    byte n

    byte n.

    byte o

    byte o.

    byte p

    byte p.

    v128(sbyte)

    Splat a single sbyte across the v128

    Declaration
    public v128(sbyte b)
    Parameters
    Type Name Description
    sbyte b

    Splatted sbyte.

    v128(sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte)

    Initialize the v128 with 16 sbytes

    Declaration
    public v128(sbyte a, sbyte b, sbyte c, sbyte d, sbyte e, sbyte f, sbyte g, sbyte h, sbyte i, sbyte j, sbyte k, sbyte l, sbyte m, sbyte n, sbyte o, sbyte p)
    Parameters
    Type Name Description
    sbyte a

    sbyte a.

    sbyte b

    sbyte b.

    sbyte c

    sbyte c.

    sbyte d

    sbyte d.

    sbyte e

    sbyte e.

    sbyte f

    sbyte f.

    sbyte g

    sbyte g.

    sbyte h

    sbyte h.

    sbyte i

    sbyte i.

    sbyte j

    sbyte j.

    sbyte k

    sbyte k.

    sbyte l

    sbyte l.

    sbyte m

    sbyte m.

    sbyte n

    sbyte n.

    sbyte o

    sbyte o.

    sbyte p

    sbyte p.

    v128(short)

    Splat a single short across the v128

    Declaration
    public v128(short v)
    Parameters
    Type Name Description
    short v

    Splatted short.

    v128(short, short, short, short, short, short, short, short)

    Initialize the v128 with 8 shorts

    Declaration
    public v128(short a, short b, short c, short d, short e, short f, short g, short h)
    Parameters
    Type Name Description
    short a

    short a.

    short b

    short b.

    short c

    short c.

    short d

    short d.

    short e

    short e.

    short f

    short f.

    short g

    short g.

    short h

    short h.

    v128(ushort)

    Splat a single ushort across the v128

    Declaration
    public v128(ushort v)
    Parameters
    Type Name Description
    ushort v

    Splatted ushort.

    v128(ushort, ushort, ushort, ushort, ushort, ushort, ushort, ushort)

    Initialize the v128 with 8 ushorts

    Declaration
    public v128(ushort a, ushort b, ushort c, ushort d, ushort e, ushort f, ushort g, ushort h)
    Parameters
    Type Name Description
    ushort a

    ushort a.

    ushort b

    ushort b.

    ushort c

    ushort c.

    ushort d

    ushort d.

    ushort e

    ushort e.

    ushort f

    ushort f.

    ushort g

    ushort g.

    ushort h

    ushort h.

    v128(int)

    Splat a single int across the v128

    Declaration
    public v128(int v)
    Parameters
    Type Name Description
    int v

    Splatted int.

    v128(int, int, int, int)

    Initialize the v128 with 4 ints

    Declaration
    public v128(int a, int b, int c, int d)
    Parameters
    Type Name Description
    int a

    int a.

    int b

    int b.

    int c

    int c.

    int d

    int d.

    v128(uint)

    Splat a single uint across the v128

    Declaration
    public v128(uint v)
    Parameters
    Type Name Description
    uint v

    Splatted uint.

    v128(uint, uint, uint, uint)

    Initialize the v128 with 4 uints

    Declaration
    public v128(uint a, uint b, uint c, uint d)
    Parameters
    Type Name Description
    uint a

    uint a.

    uint b

    uint b.

    uint c

    uint c.

    uint d

    uint d.

    v128(float)

    Splat a single float across the v128

    Declaration
    public v128(float f)
    Parameters
    Type Name Description
    float f

    Splatted float.

    v128(float, float, float, float)

    Initialize the v128 with 4 floats

    Declaration
    public v128(float a, float b, float c, float d)
    Parameters
    Type Name Description
    float a

    float a.

    float b

    float b.

    float c

    float c.

    float d

    float d.

    v128(double)

    Splat a single double across the v128

    Declaration
    public v128(double f)
    Parameters
    Type Name Description
    double f

    Splatted double.

    v128(double, double)

    Initialize the v128 with 2 doubles

    Declaration
    public v128(double a, double b)
    Parameters
    Type Name Description
    double a

    double a.

    double b

    double b.

    v128(long)

    Splat a single long across the v128

    Declaration
    public v128(long f)
    Parameters
    Type Name Description
    long f

    Splatted long.

    v128(long, long)

    Initialize the v128 with 2 longs

    Declaration
    public v128(long a, long b)
    Parameters
    Type Name Description
    long a

    long a.

    long b

    long b.

    v128(ulong)

    Splat a single ulong across the v128

    Declaration
    public v128(ulong f)
    Parameters
    Type Name Description
    ulong f

    Splatted ulong.

    v128(ulong, ulong)

    Initialize the v128 with 2 ulongs

    Declaration
    public v128(ulong a, ulong b)
    Parameters
    Type Name Description
    ulong a

    ulong a.

    ulong b

    ulong b.

    v128(v64, v64)

    Initialize the v128 with 2 v64's

    Declaration
    public v128(v64 lo, v64 hi)
    Parameters
    Type Name Description
    v64 lo

    Low half of v64.

    v64 hi

    High half of v64.

    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)