共用方式為


XMVectorSplatX 函式 (directxmath.h)

將向量的 x 元件複寫至所有元件。

語法

XMVECTOR XM_CALLCONV XMVectorSplatX(
  [in] FXMVECTOR V
) noexcept;

參數

[in] V

要從中選取 x 元件的向量。

傳回值

傳回向量,其所有元件都等於 V的 x 元件。

備註

平臺需求

Microsoft Visual Studio 2010 或 Microsoft Visual Studio 2012 搭配 Windows SDK for Windows 8。 支援 Win32 傳統型應用程式、Windows 市集應用程式和 Windows Phone 8 個應用程式。

需求

   
目標平台 Windows
標頭 directxmath.h (包含 DirectXMath.h)

另請參閱

元件向量函式