Stores signed integer data from an XMVECTOR in an XMINT4 structure.
void XMStoreSInt4(
XMINT4 *pDestination,
XMVECTOR V
)
pDestination
Type: XMINT4 *
[out]
Address of an XMINT4 structure in which to store the data.
V
Type: XMVECTOR
[in]
Vector containing the data to store.
For 16-byte aligned memory, it may be faster to use XMStoreInt4A with a casting operator.
The following pseudocode shows the operation of this function.
XMVECTOR N;
assert(pDestination);
N = XMVectorClamp(V, MinInt, MaxInt );
N = XMVectorRound(N);
pDestination->x = (int32_t)N.v[0];
pDestination->y = (int32_t)N.v[1];
pDestination->z = (int32_t)N.v[2];
pDestination->w = (int32_t)N.v[3];
Header: Declared in directxmath.h.