XMVectorShiftLeft 模板

将给定数量的 32 位元素左移向量,用第二个向量中的元素填充空出的元素。

语法

template<uint32_t Elements> XMVECTOR XMVectorShiftLeft(
  [in]  XMVECTOR V1,
  [in]  XMVECTOR V2
);

参数

V1

[in]向左移动的矢量。

V2

[in]向量,用于在 V1 向左移动后填充已空的组件。

返回值

返回 XMVECTOR 中移位并填充的 。

备注

此函数是 XMVectorShiftLeft 的模板版本,其中 Elements 参数是模板值。

注意

XMVectorShiftLeft 模板是 DirectXMath 的新模板,不适用于 XNAMath 2.x。

 

命名空间:使用 DirectX

平台要求

Microsoft Visual Studio 2010 或 Microsoft Visual Studio 2012 以及 Windows SDK for Windows 8。 支持 Win32 桌面应用、Windows 应用商店应用和 Windows Phone 8 应用。

要求

要求
标头
DirectXMath.h

另请参阅

DirectXMath 库模板函数

XMVectorPermute

XMVectorRotateLeft

XMVectorRotateRight