Επεξεργασία

Κοινή χρήση μέσω


XMVECTORU32 Data Type

An opaque, portable type to support the use of C/C++ initializer syntax to load uint32_t values into an instance of XMVECTOR type.

typedef XMVECTOR32 vectoru32;

Remarks

For a list of additional functionality, such as constructors and operators, available using XMVECTORU32 when programming in C++, see XMVECTORU32 Extensions.

The XMVECTORF32, XMVECTORU32, XMVECTORI32, and XMVECTORU8 structures are provided as a mechanism for creating XMVECTOR from different constant data types (floating point, unsigned integer, integer, and byte) using initializers.

This is necessary to support XMVECTOR, as it does not itself support initializers, for portability and optimization reasons.

For example:

XMVECTOR data;
XMVECTORU32 uintVector = { 0xf7000000, 0x8310000, 0x1000000, 0 };
data = uintVector;

Namespace: Use DirectX

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

Requirement Value
Header
Directxmath.h

See also

DirectXMath Library Types

XMVECTORI32 Data Type

XMVECTORF32 Data Type

XMVECTOR Data Type

XMVECTORU8 Data Type

XMVECTORU32 Extensions