XMVectorInsert (XMVECTOR, XMVECTOR)

Rotates a vector left by a given number of 32-bit components and insert selected elements of that result into another vector.

Syntax

XMVECTOR XMVectorInsert(
         XMVECTOR VD,
         XMVECTOR VS
)  

Parameters

VD
Type: XMVECTOR 

Vector to insert into.

VS
Type: XMVECTOR 

Vector to rotate left.

Return value

Type: XMVECTOR 

Returns the XMVECTOR that results from the rotation and insertion.

Remarks

For best performance, the result of XMVectorInsert should be assigned back to VD.

For cases with constant uint32_t parameters, it is more efficient to use the template form of XMVectorInsert:

template<uint32_t VSLeftRotateElements, uint32_t Select0, uint32_t Select1, uint32_t Select2, uint32_t Select3>
    XMVECTOR XMVectorInsert(FXMVECTOR VD, FXMVECTOR VS)  

Requirements

Header: Declared in directxmath.h.