XMVectorSplatOne 函数 (directxmath.h)

返回一个向量,其每个的组件都是一个。

语法

XMVECTOR XM_CALLCONV XMVectorSplatOne() noexcept;

返回值

返回一个向量,其每个的分量均为 1.0 (浮点数) 。

备注

平台要求

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

要求

   
目标平台 Windows
标头 directxmath.h (包括 DirectXMath.h)

另请参阅

矢量初始化函数