XMVectorInsert 模板
旋转给定数量的 32 位分量的向量,并将结果的选定元素插入另一个向量。
语法
template<uint32_t VSLeftRotateElements, uint32_t Select0, uint32_t Select1, uint32_t Select2, uint32_t Select3> XMVECTOR XMVectorInsert(
[in] XMVECTOR VD,
[in] XMVECTOR VS
);
参数
-
Vd
-
[in]要插入到的矢量。
-
与
-
[in]向左旋转的矢量。
返回值
返回旋转和插入产生的 XMVECTOR 。
备注
此函数是 XMVectorInsert 的模板版本,其中 Select* 参数是模板值。
为了获得最佳性能,应将 的结果 XMVectorInsert
分配回 VD。
注意
该 XMVectorInsert
模板是 DirectXMath 的新模板,不适用于 XNAMath 2.x。
命名空间:使用 DirectX
平台要求
Microsoft Visual Studio 2010 或 Microsoft Visual Studio 2012 以及 Windows SDK for Windows 8。 支持 Win32 桌面应用、Windows 应用商店应用和 Windows Phone 8 应用。
要求
要求 | 值 |
---|---|
标头 |
|
另请参阅