Rotates a vector left by a given number of 32-bit components and insert selected elements of that result into another vector.
XMVECTOR XMVectorInsert(
XMVECTOR VD,
XMVECTOR VS
)
VD
Type: XMVECTOR
Vector to insert into.
VS
Type: XMVECTOR
Vector to rotate left.
Type: XMVECTOR
Returns the XMVECTOR that results from the rotation and insertion.
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)
Header: Declared in directxmath.h.