Table of Contents

Enum ShuffleControlG2

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

Shuffle control constants for "2-element group" ("2元素组"的换位控制常数) .

public enum ShuffleControlG2 : byte

Fields

XX = 0

XX := _MM_SHUFFLE2(0, 0) = (0 << 1) | 0 = 0x00 = 0 .

XY = 2

XY := _MM_SHUFFLE2(1, 0) = (1 << 1) | 0 = 0x02 = 2 .

YX = 1

YX := _MM_SHUFFLE2(0, 1) = (0 << 1) | 1 = 0x01 = 1 .

YY = 3

YY := _MM_SHUFFLE2(1, 1) = (1 << 1) | 1 = 0x03 = 3 .

Remarks

Constant names are referenced to HLSL(High-level shader language)/GLSL(OpenGL Shading Language), using the Little-Endian mode. It is like inverse-ordered _MM_SHUFFLE2 (常量名参考了 HLSL(高级着色语言)/GLSL(OpenGL着色语言), 使用的是小端模式. 它像逆序的 _MM_SHUFFLE2).

See Also