XMStoreUDec4
構文
VOID XMStoreUDec4( XMUDEC4 *pDestination, XMVECTOR V)
パラメーター
- pDestination
[out] データを格納するアドレス - V
[in] 格納するデータが含まれるベクトル
戻り値
なし。
解説
次の擬似コードは、この関数の処理を表したものです。
XMVECTOR N; static CONST XMVECTOR Max = {1023.0f, 1023.0f, 1023.0f, 3.0f};XMASSERT(pDestination);N = XMVectorClamp(V, XMVectorZero(), Max);pDestination->v = ((UINT)N.v[3] << 30) | (((UINT)N.v[2] & 0x3FF) << 20) | (((UINT)N.v[1] & 0x3FF) << 10) | (((UINT)N.v[0] & 0x3FF));
要件
ヘッダー: xnamath.h で宣言されています。