Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XMVectorInsert template

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

Syntax

template<uint32_t VSLeftRotateElements, uint32_t Select0, uint32_t Select1, uint32_t Select2, uint32_t Select3> XMVECTOR XMVectorInsert(
  [in]  XMVECTOR VD,
  [in]  XMVECTOR VS
);

Parameters

VD

[in] Vector to insert into.

VS

[in] Vector to rotate left.

Return Value

Returns the XMVECTOR that results from the rotation and insertion.

Remarks

This function is a template version of XMVectorInsert where the Select* arguments are template values.

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

Note  The XMVectorInsert template is new for DirectXMath and is not available for XNAMath 2.x.
 

Namespace: Use DirectX

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

Requirements

Header

DirectXMath.h

See also

DirectXMath Library Template Functions
XMVectorPermute
XMVectorRotateLeft
XMVectorRotateRight
XMVectorShiftLeft

 

 

Show:
© 2018 Microsoft