XMConvertFloatToHalfStream
XMConvertHalfToFloatStream
XMMatrixDecompose
XMPlaneTransformStream
XMVector2TransformCoordStream
XMVector2TransformNormalStream
XMVector2TransformStream
XMVector3ProjectStream
XMVector3TransformCoordStream
XMVector3TransformNormalStream
XMVector3TransformStream
XMVector3UnprojectStream
XMVector4TransformStream
Expand Minimize

XMVectorGetIntByIndexPtr method

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.

Syntax


VOID XMVectorGetIntByIndexPtr(
  [out]  uint32_t *x,
  XMVECTOR V,
  size_t i
);

Parameters

x [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

A XMVECTOR Data Type containing integer data.

i

The index of the component to be retrieved.

Return value

None.

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:

IndexComponent

0

x

1

y

2

z

3

w

 

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

Requirements

Namespace

Use DirectX.

Header

DirectXMath.h

See also

XMVectorGetIntByIndex
XMVectorSetIntByIndexPtr

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.