Table of Contents

Method YGroup3Unzip_Bit128

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YGroup3Unzip_Bit128<T>(Vector128<T>, Vector128<T>, Vector128<T>, out Vector128<T>, out Vector128<T>)

De-Interleave 3-element groups into 3 vectors. It converts the 3-element groups AoS to SoA. It can also deinterleave packed RGB pixel data into R,G,B planar data (将3-元素组解交织为3个向量. 它能将3元素组的 数组结构体 转为 结构体数组. 它还能将 已打包的RGB像素数据, 解交织为 R,G,B 平面数据). It is specialized for process 128-bit element (它专门用于处理128位元素). Mnemonic: x[i] =: element_ref(3i, data0, data1, data2), y[i] =: element_ref(3i+1, data0, data1, data2), z[i] =: element_ref(3*i+2, data0, data1, data2).

public static Vector128<T> YGroup3Unzip_Bit128<T>(Vector128<T> data0, Vector128<T> data1, Vector128<T> data2, out Vector128<T> y, out Vector128<T> z) where T : struct

Parameters

data0 Vector128<T>

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

data1 Vector128<T>

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

data2 Vector128<T>

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

y Vector128<T>

Returns the vector made of the Y-components (返回Y分量所组成的向量).

z Vector128<T>

Returns the vector made of the Z-components (返回Z分量所组成的向量).

Returns

Vector128<T>

Returns the vector made of the X-components (返回X分量所组成的向量).

Type Parameters

T

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

See Also