A 3D vector with x- and z- components represented as 5-bit unsigned integer values, and the y- component as a 6-bit unsigned integer value.
If you are programming in C++, you can use the constructors and operator methods of this structure.
struct XMU565
The fields in the XMU565 structure are declared as follows:
struct XMU565
{
union
{
struct
{
uint16_t x : 5; // The 5-bit x component. 0 to 31.
uint16_t y : 6; // The 5-bit y component. 0 to 63.
uint16_t z : 5; // The 5-bit z component. 0 to 31.
};
uint16_t v; // Unsigned 16-bit short representing the 3D vector.
};
You can use XMLoadU565 to load XMU565 into instances of XMVECTOR.
You can use XMStoreU565 to store instances of XMVECTOR into an instance of XMU565.
Namespace: Use DirectX::PackedVector
Header: Declared in directxpackedvector.h.