An opaque, portable type to support the use of C/C++ initializer syntax to load uint8_t values into an instance of XMVECTOR type.
struct XMVECTORU8
If you are programming in C++, you can use the methods of this structure.
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;
XMVECTORU8 byteVector = { (uint8_t) 1,(uint8_t) 16,(uint8_t)101,(uint8_t) 62,
(uint8_t) 4,(uint8_t) 0,(uint8_t) 2,(uint8_t) 99,
(uint8_t) 9,(uint8_t) 18,(uint8_t) 0,(uint8_t) 0,
(uint8_t)100,(uint8_t) 51,(uint8_t) 23,(uint8_t)117};
data = floatingVector;
Namespace: Use DirectX
Header: Declared in directxmath.h.