Retrieve, into an instance of an integer referenced by pointer, the value of one of the four components of an XMVECTOR Data Type containing integer data by index.
void XMVectorGetIntByIndexPtr(
uint32_t *x,
XMVECTOR V,
size_t i
)
x
Type: uint32_t *
[out]
Pointer to an instance of an integer object that will receive the value of the i component of the XMVECTOR Data Type object V.
V
Type: XMVECTOR
[in]
A XMVECTOR Data Type containing integer data.
i
Type: size_t
[in]
The index of the component to be retrieved.
The value of i must be positive and less than or equal to three ( 0 <= i <= 3 ).
The indexes have the following correspondence with XMVECTOR Data Type vector components:
| Index | Component |
|---|---|
0 |
x |
1 |
y |
2 |
z |
3 |
w |
Header: Declared in directxmath.h.