XMVectorSetIntByIndexPtr

Use a pointer to an integer instance to set the value of one of the four components of an XMVECTOR Data Type containing integer data referenced by an index.

Syntax

XMVECTOR XMVectorSetIntByIndexPtr(
         XMVECTOR V,
         const uint32_t *x,
         size_t i
)  

Parameters

V
Type: XMVECTOR 

[in]

A XMVECTOR Data Type containing integer data.

x
Type: uint32_t *

[in]

A pointer to an integer instance used to set the i component of the returned XMVECTOR Data Type.

i
Type: size_t 

[in]

The index of the component to be set.

Return value

Type: XMVECTOR 

An instance of XMVECTOR Data Type whose i component has been set to the integer value provided by the argument f. All other components of the returned XMVECTOR Data Type instance have the same value as those of the input vector V.

Remarks

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

Requirements

Header: Declared in directxmath.h.