DirectXMath Library Types

The DirectXMath Library provides a number of structures and defined types to encapsulate data to support ease of use, optimization, and portability.

Structures

Name Description
HALF An alias to uint16_t packed with a 16-bit floating-point number consisting of a sign bit, a 5-bit biased exponent, and a 10-bit mantissa.
XMVECTOR A portable type used to represent a vector of four 32-bit floating-point or integer components, each aligned optimally and mapped to a hardware vector register.
XMVECTORF32 An opaque, portable type to support the use of C/C++ initializer syntax to load floating-point values into an instance of XMVECTOR type.
XMVECTORI32 An opaque, portable type to support the use of C/C++ initializer syntax to load integer values into an instance of XMVECTOR type.
XMVECTORU32 An opaque, portable type to support the use of C/C++ initializer syntax to load uint32_t values into an instance of XMVECTOR type.
XMVECTORU8 An opaque, portable type to support the use of C/C++ initializer syntax to load uint8_t values into an instance of XMVECTOR type.