XMVectorMergeZW

Creates a new vector by combining the z and w-components of two vectors.

Syntax

XMVECTOR XMVectorMergeZW(
         XMVECTOR V1,
         XMVECTOR V2
)  

Parameters

V1
Type: XMVECTOR 

First vector.

V2
Type: XMVECTOR 

Second vector.

Return value

Type: XMVECTOR 

Returns the merged vector.

Remarks

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;  

Requirements

Header: Declared in directxmath.h.