Table of Contents

Method YGroup3Zip_Bit128

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YGroup3Zip_Bit128<T>(Vector512<T>, Vector512<T>, Vector512<T>, out Vector512<T>, out Vector512<T>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

public static Vector512<T> YGroup3Zip_Bit128<T>(Vector512<T> x, Vector512<T> y, Vector512<T> z, out Vector512<T> data1, out Vector512<T> data2) where T : struct

Parameters

x Vector512<T>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<T>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

z Vector512<T>

A vector consisting purely of Z-components (纯由Z分量所组成的向量).

data1 Vector512<T>

Returns part 1 of the interleaved data (返回交织后数据的第1部分).

data2 Vector512<T>

Returns part 2 of the interleaved data (返回交织后数据的第2部分).

Returns

Vector512<T>

Returns part 0 of the interleaved data (返回交织后数据的第0部分).

Type Parameters

T

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