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.

Syntax


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

Members

x : 5

The 5-bit x component.

y : 6

The 5-bit y component.

z : 5

The 5-bit z component.

v

Unsigned short representing the 3D vector.

Remarks

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.

Requirements

Header

DirectXPackedVector.h

See also

XMU565 Extensions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft