共用方式為


XMVectorSetIntX 函式 (directxmath.h)

設定 XMVECTOR 資料類型元件的值x

語法

XMVECTOR XM_CALLCONV XMVectorSetIntX(
  [in] FXMVECTOR V,
  [in] uint32_t  x
) noexcept;

參數

[in] V

儲存整數數據的有效 4D 向量。

[in] x

要指派給 xV 的整數值。

傳回值

無。

備註

平臺需求

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

規格需求

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

另請參閱

DirectXMath 連結庫向量存取子函式