Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

DirectXMath Library Structures
XMU565 Extensions



© 2017 Microsoft