共用方式為


XMLoadInt4 函式 (directxmath.h)

將資料載入 XMVECTOR,而不檢查類型。

注意 提供此函式以與 Xbox 數學程式庫回溯相容性。 當您載入整數資料時,應該使用 XMLoadInt4 ,當您載入浮點數據時,應該使用 XMLoadFloat4
 

語法

XMVECTOR XM_CALLCONV XMLoadInt4(
  [in] const uint32_t *pSource
) noexcept;

參數

[in] pSource

要載入之資料的位址。

傳回值

傳回從pSource參數載入的XMVECTOR

備註

若要將載入的 XMVECTOR 轉換成浮點值,請使用 XMConvertVectorUIntToFloatXMConvertVectorIntToFloat

下列虛擬程式碼會顯示函式的作業。

XMVECTOR vectorOut;

uint32_t* pElement = (uint32_t*)pSource;

V.u[0] = pElement[0];
V.u[1] = pElement[1];
V.u[2] = pElement[2];
V.u[3] = pElement[3];

return vectorOut;

平臺需求

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

需求

   
目標平台 Windows
標頭 directxmath.h

另請參閱

DirectXMath 程式庫向量載入函式

XMINT4

XMLoadSInt4

XMLoadUInt4

XMUINT4