XMStoreInt4A 函式 (directxmath.h)

XMVECTOR 儲存在 16 位元組對齊的 4 個元素 uint32_t 數位中。

語法

void XM_CALLCONV XMStoreInt4A(
  [out] uint32_t  *pDestination,
  [in]  FXMVECTOR V
) noexcept;

參數

[out] pDestination

要儲存數據的位址。 此位址必須對齊 16 位元組。

[in] V

包含要儲存之數據的向量。

傳回值

無。

備註

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

uint32_t* pElement = (uint32_t*)pDestination;

assert(pDestination);
assert(((uint32_t_PTR)pDestination & 0xF) == 0);

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

平臺需求

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

規格需求

需求
目標平台 Windows
標頭 directxmath.h

另請參閱

DirectXMath 連結庫向量存放區函式