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