共用方式為


XMLoadUShort4 函式 (directxpackedvector.h)

XMUSHORT4 載入 XMVECTOR

語法

XMVECTOR XM_CALLCONV XMLoadUShort4(
  [in] const XMUSHORT4 *pSource
) noexcept;

參數

[in] pSource

要載入之 XMUSHORT4 結構的位址。 此參數必須指向快取的記憶體。

傳回值

傳回從 pSource 參數載入的 XMVECTOR

備註

下列虛擬程式代碼示範函式的作業。

XMVECTOR vectorOut;

vectorOut.x = (float)pSource->x;
vectorOut.y = (float)pSource->y;
vectorOut.z = (float)pSource->z;
vectorOut.w = (float)pSource->w;
	
return vectorOut;

平臺需求

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

規格需求

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

另請參閱

DirectXMath 連結庫向量載入函式