Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
| Requirement | Value |
|---|---|
| Header |
|
See also