Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

XMU565 union

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.

For a list of more functionality such as constructors and operators that are available using XMU565 when you are programming in C++, see XMU565 Extensions.


union XMU565 {
  union {
    struct {
      uint16_t x : 5;
      uint16_t y : 6;
      uint16_t z : 5;
    uint16_t v;


x : 5

The 5-bit x component.

y : 6

The 5-bit y component.

z : 5

The 5-bit z component.


Unsigned 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

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.




See also

XMU565 Extensions



Community Additions

© 2015 Microsoft