Export (0) Print
Expand All

XMU555 union

A 4D vector with x-,y-, and z- components represented as 5 bit unsigned integer values, and the w-component as a 1 bit integer value.

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

Syntax


union XMU555 {
  union {
    struct {
      uint16_t x : 5;
      uint16_t y : 5;
      uint16_t z : 5;
      uint16_t w : 1;
      uint16_t v;
    };
  };
};

Members

x : 5

Unsigned 5-bit integer value in the range [0,31] describing the x-coordinate of the vector.

y : 5

Unsigned 5-bit integer value in the range [0,31] describing the y-coordinate of the vector.

z : 5

Unsigned 5-bit integer value in the range [0,31] describing the z-coordinate of the vector.

w : 1

A 1-bit integer value in the range [0,31] describing the w-coordinate of the vector.

v

Unsigned short representing the 4D vector.

Remarks

XMU555 can be loaded into instances of XMVECTOR by using XMLoadU555.

Instances of XMVECTOR can be stored into an instance of XMU555 with XMStoreU555.

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

XMU555 Extensions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft