Method YGroup4Unzip_Bit128
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YGroup4Unzip_Bit128<T>(Vector<T>, Vector<T>, Vector<T>, Vector<T>, out Vector<T>, out Vector<T>, out Vector<T>)
De-Interleave 4-element groups into 4 vectors. It converts the 4-element groups AoS to SoA. It can also deinterleave packed RGBA pixel data into R,G,B,A planar data (将4-元素组解交织为4个向量. 它能将4元素组的 数组结构体 转为 结构体数组. 它还能将 已打包的RGBA像素数据, 解交织为 R,G,B,A 平面数据). It is specialized for process 128-bit element (它专门用于处理128位元素).
Mnemonic: x[i] =: element_ref(4i, data0, data1, data2, data3)
, y[i] =: element_ref(4i+1, data0, data1, data2, data3)
, z[i] =: element_ref(4i+2, data0, data1, data2, data3)
, w[i] =: element_ref(4i+3, data0, data1, data2, data3)
.
public static Vector<T> YGroup4Unzip_Bit128<T>(Vector<T> data0, Vector<T> data1, Vector<T> data2, Vector<T> data3, out Vector<T> y, out Vector<T> z, out Vector<T> w) where T : struct
Parameters
data0
Vector<T>A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).
data1
Vector<T>A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).
data2
Vector<T>A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).
data3
Vector<T>A vector made of 4-element groups - Part 3 (由4元素组所组成的向量 - 第3部分).
y
Vector<T>Returns the vector made of the Y-components (返回Y分量所组成的向量).
z
Vector<T>Returns the vector made of the Z-components (返回Z分量所组成的向量).
w
Vector<T>Returns the vector made of the W-components (返回W分量所组成的向量).
Returns
- Vector<T>
Returns the vector made of the X-components (返回X分量所组成的向量).
Type Parameters
T
The element type of the input parameter (输入参数的元素类型).