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.

XMVectorSwizzle template

Swizzles a vector.

Syntax

template<uint32_t SwizzleX, uint32_t SwizzleY, uint32_t SwizzleZ, uint32_t SwizzleW> XMVECTOR XMVectorSwizzle(
  [in]  XMVECTOR V
);

Parameters

V

[in] Vector to swizzle.

Return Value

Returns the swizzled XMVECTOR.

Remarks

This function is a template version of XMVectorSwizzle where the Swizzle* arguments are template values.

XM_SWIZZLE_X, XM_SWIZZLE_Y, XM_SWIZZLE_Z, and XM_SWIZZLE_W are constants which evaluate to 0, 1, 2, and 3 respectively for use with XMVectorSwizzle. This is identical to XM_PERMUTE_0X, XM_PERMUTE_0Y, XM_PERMUTE_0Z, and XM_PERMUTE_0W.

Note  The XMVectorSwizzle 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

 

 

Show:
© 2017 Microsoft