UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:directxmath.XMVectorPermute |
XMVectorPermute function (directxmath.h) |
Permutes the components of two vectors to create a new vector. |
|
dxmath\xmvectorpermute.htm |
dxmath |
M:Microsoft.directx_sdk.component-wise.XMVectorPermute(XMVECTOR,XMVECTOR,unit32_t,unit32_t,unit32_t,unit32_t) |
12/05/2018 |
Use DirectX..XMVectorPermute, XMVectorPermute, XMVectorPermute method [DirectX Math Support APIs], dxmath.xmvectorpermute |
directxmath.h |
DirectXMath.h |
Windows |
Use DirectX. |
Windows |
19H1 |
|
|
|
|
|
|
Permutes the components of two vectors to create a new vector.
First vector.
Second vector.
Index form 0-7 indicating where the X component of the new vector should be copied from.
Index form 0-7 indicating where the Y component of the new vector should be copied from.
Index form 0-7 indicating where the Z component of the new vector should be copied from.
Index form 0-7 indicating where the W component of the new vector should be copied from.
Returns the permuted vector that resulted from combining the source vectors.
If all 4 indices reference only a single vector (i.e. they are all in the range 0-3 or all in the range 4-7), use XMVectorSwizzle instead for better performance.
The XM_PERMUTE_ constants are provided to use as input values for PermuteX,PermuteY,PermuteZ, and PermuteW.
For constant PermuteX/Y/Z/W parameters, it is much more efficient to use the template form of XMVectorPermute:
template<uint32_t PermuteX, uint32_t PermuteY, uint32_t PermuteZ, uint32_t PermuteW>
XMVECTOR XMVectorPermute(FXMVECTOR V1, FXMVECTOR V2)
Example: XMVectorPermute<XM_PERMUTE_0Z, XM_PERMUTE_1X, XM_PERMUTE_0W, XM_PERMUTE_1Y>( V1, V2 );
XMVectorPermute
is new for DirectXMath. The XNAMath v2.x library made use of XMVectorPermuteControl
,
a control XMVECTOR
instead of 4 indices for XMVectorPermute
, and used different values for the XM_PERMUTE_x constants.