Creates a new vector by combining the z and w-components of two vectors.
XMVECTOR XMVectorMergeZW(
XMVECTOR V1,
XMVECTOR V2
)
V1
Type: XMVECTOR
First vector.
V2
Type: XMVECTOR
Second vector.
Type: XMVECTOR
Returns the merged vector.
The following pseudocode demonstrates the operation of the function:
XMVECTOR Result;
Result.x = V1.z;
Result.y = V2.z;
Result.z = V1.w;
Result.w = V2.w;
return Result;
Header: Declared in directxmath.h.