Struct v128
Represents a 128-bit SIMD value
Syntax
Constructors
v128(Byte)
Splat a single byte across the v128
Declaration
Parameters
Type |
Name |
Description |
Byte |
b |
|
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
v128(Double)
Splat a single double across the v128
Declaration
Parameters
Type |
Name |
Description |
Double |
f |
|
v128(Double, Double)
Initialize the v128 with 2 doubles
Declaration
public v128(double a, double b)
Parameters
v128(Int16)
Splat a single short across the v128
Declaration
Parameters
Type |
Name |
Description |
Int16 |
v |
|
v128(Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16)
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
v128(Int32)
Splat a single int across the v128
Declaration
Parameters
Type |
Name |
Description |
Int32 |
v |
|
v128(Int32, Int32, Int32, Int32)
Initialize the v128 with 4 ints
Declaration
public v128(int a, int b, int c, int d)
Parameters
v128(Int64)
Splat a single long across the v128
Declaration
Parameters
Type |
Name |
Description |
Int64 |
f |
|
v128(Int64, Int64)
Initialize the v128 with 2 longs
Declaration
public v128(long a, long b)
Parameters
v128(SByte)
Splat a single sbyte across the v128
Declaration
Parameters
Type |
Name |
Description |
SByte |
b |
|
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
v128(Single)
Splat a single float across the v128
Declaration
Parameters
Type |
Name |
Description |
Single |
f |
|
v128(Single, Single, Single, Single)
Initialize the v128 with 4 floats
Declaration
public v128(float a, float b, float c, float d)
Parameters
v128(UInt16)
Splat a single ushort across the v128
Declaration
Parameters
Type |
Name |
Description |
UInt16 |
v |
|
v128(UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16)
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
v128(UInt32)
Splat a single uint across the v128
Declaration
Parameters
Type |
Name |
Description |
UInt32 |
v |
|
v128(UInt32, UInt32, UInt32, UInt32)
Initialize the v128 with 4 uints
Declaration
public v128(uint a, uint b, uint c, uint d)
Parameters
v128(UInt64)
Splat a single ulong across the v128
Declaration
Parameters
Type |
Name |
Description |
UInt64 |
f |
|
v128(UInt64, UInt64)
Initialize the v128 with 2 ulongs
Declaration
public v128(ulong a, ulong b)
Parameters
Fields
Byte0
Declaration
Field Value
Byte1
Declaration
Field Value
Byte10
Declaration
Field Value
Byte11
Declaration
Field Value
Byte12
Declaration
Field Value
Byte13
Declaration
Field Value
Byte14
Declaration
Field Value
Byte15
Declaration
Field Value
Byte2
Declaration
Field Value
Byte3
Declaration
Field Value
Byte4
Declaration
Field Value
Byte5
Declaration
Field Value
Byte6
Declaration
Field Value
Byte7
Declaration
Field Value
Byte8
Declaration
Field Value
Byte9
Declaration
Field Value
Double0
Declaration
Field Value
Double1
Declaration
Field Value
Float0
Declaration
Field Value
Float1
Declaration
Field Value
Float2
Declaration
Field Value
Float3
Declaration
Field Value
SByte0
Declaration
Field Value
SByte1
Declaration
Field Value
SByte10
Declaration
Field Value
SByte11
Declaration
Field Value
SByte12
Declaration
Field Value
SByte13
Declaration
Field Value
SByte14
Declaration
Field Value
SByte15
Declaration
Field Value
SByte2
Declaration
Field Value
SByte3
Declaration
Field Value
SByte4
Declaration
Field Value
SByte5
Declaration
Field Value
SByte6
Declaration
Field Value
SByte7
Declaration
Field Value
SByte8
Declaration
Field Value
SByte9
Declaration
Field Value
SInt0
Declaration
Field Value
SInt1
Declaration
Field Value
SInt2
Declaration
Field Value
SInt3
Declaration
Field Value
SLong0
Declaration
Field Value
SLong1
Declaration
Field Value
SShort0
Declaration
Field Value
SShort1
Declaration
Field Value
SShort2
Declaration
Field Value
SShort3
Declaration
Field Value
SShort4
Declaration
Field Value
SShort5
Declaration
Field Value
SShort6
Declaration
Field Value
SShort7
Declaration
Field Value
UInt0
Declaration
Field Value
UInt1
Declaration
Field Value
UInt2
Declaration
Field Value
UInt3
Declaration
Field Value
ULong0
Declaration
Field Value
ULong1
Declaration
Field Value
UShort0
Declaration
Field Value
UShort1
Declaration
Field Value
UShort2
Declaration
Field Value
UShort3
Declaration
Field Value
UShort4
Declaration
Field Value
UShort5
Declaration
Field Value
UShort6
Declaration
Field Value
UShort7
Declaration
Field Value
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.