Table of Contents

Method YGroup3ToGroup4

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YGroup3ToGroup4<T>(Vector128<T>, Vector128<T>, Vector128<T>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[Obsolete("It is only suitable for unit testing because it contains branching statements and has poor performance. In general, it is recommended to use the non-generic version of the methods (因它含有分支语句, 性能较差, 仅适用于单元测试. 一般情况下, 建议使用非泛型版方法).")]
public static (Vector128<T> Result0, Vector128<T> Result1, Vector128<T> Result2, Vector128<T> Result3) YGroup3ToGroup4<T>(Vector128<T> data0, Vector128<T> data1, Vector128<T> data2) where T : struct

Parameters

data0 Vector128<T>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<T>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<T>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector128<T> Result0, Vector128<T> Result1, Vector128<T> Result2, Vector128<T> Result3)

Returns the converted data. (返回转换后数据).

Type Parameters

T

The element type of the input parameter (输入参数的元素类型).

See Also

YGroup3ToGroup4(Vector128<float>, Vector128<float>, Vector128<float>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static (Vector128<float> Result0, Vector128<float> Result1, Vector128<float> Result2, Vector128<float> Result3) YGroup3ToGroup4(Vector128<float> data0, Vector128<float> data1, Vector128<float> data2)

Parameters

data0 Vector128<float>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<float>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<float>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector128<float> Result0, Vector128<float> Result1, Vector128<float> Result2, Vector128<float> Result3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector128<double>, Vector128<double>, Vector128<double>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static (Vector128<double> Result0, Vector128<double> Result1, Vector128<double> Result2, Vector128<double> Result3) YGroup3ToGroup4(Vector128<double> data0, Vector128<double> data1, Vector128<double> data2)

Parameters

data0 Vector128<double>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<double>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<double>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector128<double> Result0, Vector128<double> Result1, Vector128<double> Result2, Vector128<double> Result3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector128<sbyte>, Vector128<sbyte>, Vector128<sbyte>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static (Vector128<sbyte> Result0, Vector128<sbyte> Result1, Vector128<sbyte> Result2, Vector128<sbyte> Result3) YGroup3ToGroup4(Vector128<sbyte> data0, Vector128<sbyte> data1, Vector128<sbyte> data2)

Parameters

data0 Vector128<sbyte>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<sbyte>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<sbyte>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector128<sbyte> args0, Vector128<sbyte> args1, Vector128<sbyte> args2, Vector128<sbyte> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector128<byte>, Vector128<byte>, Vector128<byte>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static (Vector128<byte> Result0, Vector128<byte> Result1, Vector128<byte> Result2, Vector128<byte> Result3) YGroup3ToGroup4(Vector128<byte> data0, Vector128<byte> data1, Vector128<byte> data2)

Parameters

data0 Vector128<byte>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<byte>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<byte>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector128<byte> args0, Vector128<byte> args1, Vector128<byte> args2, Vector128<byte> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector128<short>, Vector128<short>, Vector128<short>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static (Vector128<short> Result0, Vector128<short> Result1, Vector128<short> Result2, Vector128<short> Result3) YGroup3ToGroup4(Vector128<short> data0, Vector128<short> data1, Vector128<short> data2)

Parameters

data0 Vector128<short>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<short>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<short>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector128<short> args0, Vector128<short> args1, Vector128<short> args2, Vector128<short> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector128<ushort>, Vector128<ushort>, Vector128<ushort>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static (Vector128<ushort> Result0, Vector128<ushort> Result1, Vector128<ushort> Result2, Vector128<ushort> Result3) YGroup3ToGroup4(Vector128<ushort> data0, Vector128<ushort> data1, Vector128<ushort> data2)

Parameters

data0 Vector128<ushort>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<ushort>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<ushort>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector128<ushort> args0, Vector128<ushort> args1, Vector128<ushort> args2, Vector128<ushort> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector128<int>, Vector128<int>, Vector128<int>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static (Vector128<int> Result0, Vector128<int> Result1, Vector128<int> Result2, Vector128<int> Result3) YGroup3ToGroup4(Vector128<int> data0, Vector128<int> data1, Vector128<int> data2)

Parameters

data0 Vector128<int>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<int>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<int>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector128<int> args0, Vector128<int> args1, Vector128<int> args2, Vector128<int> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector128<uint>, Vector128<uint>, Vector128<uint>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static (Vector128<uint> Result0, Vector128<uint> Result1, Vector128<uint> Result2, Vector128<uint> Result3) YGroup3ToGroup4(Vector128<uint> data0, Vector128<uint> data1, Vector128<uint> data2)

Parameters

data0 Vector128<uint>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<uint>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<uint>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector128<uint> args0, Vector128<uint> args1, Vector128<uint> args2, Vector128<uint> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector128<long>, Vector128<long>, Vector128<long>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static (Vector128<long> Result0, Vector128<long> Result1, Vector128<long> Result2, Vector128<long> Result3) YGroup3ToGroup4(Vector128<long> data0, Vector128<long> data1, Vector128<long> data2)

Parameters

data0 Vector128<long>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<long>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<long>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector128<long> args0, Vector128<long> args1, Vector128<long> args2, Vector128<long> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector128<ulong>, Vector128<ulong>, Vector128<ulong>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static (Vector128<ulong> Result0, Vector128<ulong> Result1, Vector128<ulong> Result2, Vector128<ulong> Result3) YGroup3ToGroup4(Vector128<ulong> data0, Vector128<ulong> data1, Vector128<ulong> data2)

Parameters

data0 Vector128<ulong>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<ulong>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<ulong>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector128<ulong> args0, Vector128<ulong> args1, Vector128<ulong> args2, Vector128<ulong> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector128<float>, Vector128<float>, Vector128<float>, out Vector128<float>, out Vector128<float>, out Vector128<float>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static Vector128<float> YGroup3ToGroup4(Vector128<float> data0, Vector128<float> data1, Vector128<float> data2, out Vector128<float> result1, out Vector128<float> result2, out Vector128<float> result3)

Parameters

data0 Vector128<float>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<float>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<float>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector128<float>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector128<float>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector128<float>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector128<float>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector128<double>, Vector128<double>, Vector128<double>, out Vector128<double>, out Vector128<double>, out Vector128<double>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static Vector128<double> YGroup3ToGroup4(Vector128<double> data0, Vector128<double> data1, Vector128<double> data2, out Vector128<double> result1, out Vector128<double> result2, out Vector128<double> result3)

Parameters

data0 Vector128<double>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<double>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<double>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector128<double>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector128<double>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector128<double>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector128<double>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector128<sbyte>, Vector128<sbyte>, Vector128<sbyte>, out Vector128<sbyte>, out Vector128<sbyte>, out Vector128<sbyte>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static Vector128<sbyte> YGroup3ToGroup4(Vector128<sbyte> data0, Vector128<sbyte> data1, Vector128<sbyte> data2, out Vector128<sbyte> result1, out Vector128<sbyte> result2, out Vector128<sbyte> result3)

Parameters

data0 Vector128<sbyte>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<sbyte>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<sbyte>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector128<sbyte>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector128<sbyte>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector128<sbyte>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector128<sbyte>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector128<byte>, Vector128<byte>, Vector128<byte>, out Vector128<byte>, out Vector128<byte>, out Vector128<byte>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static Vector128<byte> YGroup3ToGroup4(Vector128<byte> data0, Vector128<byte> data1, Vector128<byte> data2, out Vector128<byte> result1, out Vector128<byte> result2, out Vector128<byte> result3)

Parameters

data0 Vector128<byte>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<byte>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<byte>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector128<byte>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector128<byte>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector128<byte>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector128<byte>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector128<short>, Vector128<short>, Vector128<short>, out Vector128<short>, out Vector128<short>, out Vector128<short>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static Vector128<short> YGroup3ToGroup4(Vector128<short> data0, Vector128<short> data1, Vector128<short> data2, out Vector128<short> result1, out Vector128<short> result2, out Vector128<short> result3)

Parameters

data0 Vector128<short>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<short>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<short>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector128<short>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector128<short>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector128<short>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector128<short>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector128<ushort>, Vector128<ushort>, Vector128<ushort>, out Vector128<ushort>, out Vector128<ushort>, out Vector128<ushort>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static Vector128<ushort> YGroup3ToGroup4(Vector128<ushort> data0, Vector128<ushort> data1, Vector128<ushort> data2, out Vector128<ushort> result1, out Vector128<ushort> result2, out Vector128<ushort> result3)

Parameters

data0 Vector128<ushort>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<ushort>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<ushort>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector128<ushort>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector128<ushort>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector128<ushort>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector128<ushort>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector128<int>, Vector128<int>, Vector128<int>, out Vector128<int>, out Vector128<int>, out Vector128<int>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static Vector128<int> YGroup3ToGroup4(Vector128<int> data0, Vector128<int> data1, Vector128<int> data2, out Vector128<int> result1, out Vector128<int> result2, out Vector128<int> result3)

Parameters

data0 Vector128<int>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<int>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<int>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector128<int>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector128<int>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector128<int>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector128<int>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector128<uint>, Vector128<uint>, Vector128<uint>, out Vector128<uint>, out Vector128<uint>, out Vector128<uint>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static Vector128<uint> YGroup3ToGroup4(Vector128<uint> data0, Vector128<uint> data1, Vector128<uint> data2, out Vector128<uint> result1, out Vector128<uint> result2, out Vector128<uint> result3)

Parameters

data0 Vector128<uint>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<uint>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<uint>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector128<uint>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector128<uint>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector128<uint>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector128<uint>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector128<long>, Vector128<long>, Vector128<long>, out Vector128<long>, out Vector128<long>, out Vector128<long>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static Vector128<long> YGroup3ToGroup4(Vector128<long> data0, Vector128<long> data1, Vector128<long> data2, out Vector128<long> result1, out Vector128<long> result2, out Vector128<long> result3)

Parameters

data0 Vector128<long>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<long>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<long>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector128<long>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector128<long>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector128<long>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector128<long>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector128<ulong>, Vector128<ulong>, Vector128<ulong>, out Vector128<ulong>, out Vector128<ulong>, out Vector128<ulong>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static Vector128<ulong> YGroup3ToGroup4(Vector128<ulong> data0, Vector128<ulong> data1, Vector128<ulong> data2, out Vector128<ulong> result1, out Vector128<ulong> result2, out Vector128<ulong> result3)

Parameters

data0 Vector128<ulong>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector128<ulong>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector128<ulong>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector128<ulong>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector128<ulong>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector128<ulong>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector128<ulong>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also