-
首页
-
C4D R23.110 C++ SDK
Vector4i32 Class Reference
#include <sse_vector_4i32.h>
详细描述
The class and the default constructor are always defined. The functions of this class are only defined when C4D_HAS_SSE2_CAPABILITY is set. Instances of this class must be aligned to 16 bytes. The layout in the memory is as follows: address + 0 + 1 + 2 + 3 R0 R1 R2 R3
构造函数 & 析构函数文档编制
◆
Vector4i32()
[1/3]
Constructs the object. It does not set a default value.
◆
Vector4i32()
[2/3]
Constructs the object and sets all values to i.
-
参数
-
[in]
|
i
|
The value that is assigned to all vector elements.
|
◆
Vector4i32()
[3/3]
Constructs the object and sets all values to i0...i3.
-
参数
-
[in]
|
i0
|
The value that is assigned to vector element 0.
|
[in]
|
i1
|
The value that is assigned to vector element 1.
|
[in]
|
i2
|
The value that is assigned to vector element 2.
|
[in]
|
i3
|
The value that is assigned to vector element 3.
|
成员函数文档编制
◆
LoadUnaligned()
Loads a vector from an address in the memory.
-
参数
-
[in]
|
p
|
The address where the vector is loaded from.
|
◆
LoadAligned()
Loads a vector from an address in the memory.
-
参数
-
[in]
|
p
|
The address where the vector is loaded from, must be 16-byte aligned.
|
◆
StoreUnaligned()
Stores the contents of this vector to an address in the memory.
-
参数
-
[in]
|
p
|
The address where the vector is to be stored.
|
◆
StoreAligned()
Stores the contents of this vector to an address in the memory.
-
参数
-
[in]
|
p
|
The address where the vector is to be stored. It must be 16-byte aligned.
|
◆
operator[]()
[1/2]
Gets component i from the vector.
-
参数
-
-
返回
-
Vector element.
◆
operator[]()
[2/2]
Gets component i from the vector.
-
参数
-
-
返回
-
Vector element.
◆
operator+=()
Adds a vector to this.
-
参数
-
[in]
|
a
|
The vector to add.
|
-
返回
-
A reference to this vector.
◆
ShiftLeft()
Shifts the whole vector left. Note that the template argument must be a numeric constant. SSE2
-
参数
-
-
Template Parameters
-
imm
|
Defines the number of bytes to shift left.
|
-
返回
-
The shifted vector.
◆
Shuffle()
Shuffles the components of the input vector. Note that the template arguments must be numeric constants.
-
参数
-
-
Template Parameters
-
ma1
|
Decides which element of vector A becomes the new R0.
|
ma2
|
Decides which element of vector A becomes the new R1.
|
ma3
|
Decides which element of vector A becomes the new R2.
|
ma4
|
Decides which element of vector A becomes the new R3.
|
-
返回
-
A vector consisting of R0=A[ma1], R1=A[ma2], R2=A[ma2], R3=A[ma3]
Friends And Related Function Documentation
◆
CastToVector4f32
Casts a
Vector4i32
到
Vector4f32
vector.
-
返回
-
A
Vector4f32
vector.
◆
ConvertToVector4f32
Converts a
Vector4i32
到
Vector4f32
vector.
-
返回
-
A
Vector4f32
vector.
◆
CastToVector4i32
Casts a
Vector4f32
到
Vector4i32
vector.
-
返回
-
A
Vector4i32
vector.
◆
ConvertToVector4i32
Converts a
Vector4f32
到
Vector4i32
vector.
-
返回
-
A
Vector4i32
vector.
◆
operator+
Adds two vectors.
-
参数
-
[in]
|
a
|
The first operand.
|
[in]
|
b
|
The second operand.
|
-
返回
-
The sum of a and b.
Member Data Documentation
◆
@1091
The internal SSE vector.