XMU565 structure (directxpackedvector.h)

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

struct XMU565 {
  union {
    struct {
      uint16_t x : 5;
      uint16_t y : 6;
      uint16_t z : 5;
    };
      uint16_t v;
  };
  void     XMU565();
  void     XMU565(
    const XMU565 & unnamedParam1
  );
  XMU565 & operator=(
    const XMU565 & unnamedParam1
  );
  void     XMU565(
    XMU565 && unnamedParam1
  );
  XMU565 & operator=(
    XMU565 && unnamedParam1
  );
  void     XMU565(
    uint16_t Packed
  ) noexcept;
  void     XMU565(
    uint8_t _x,
    uint8_t _y,
    uint8_t _z
  ) noexcept;
  void     XMU565(
    const uint8_t *pArray
  ) noexcept;
  void     XMU565(
    float _x,
    float _y,
    float _z
  ) noexcept;
  void     XMU565(
    const float *pArray
  ) noexcept;
  void     operator uint16_t() noexcept;
  XMU565 & operator=(
    uint16_t Packed
  ) noexcept;
};

Members

5 x

The 5-bit x component.

6 y

The 5-bit y component.

5 z

The 5-bit z component.

v

Unsigned short representing the 3D vector.

void XMU565()

Default constructor for XMU565

Default constructor for XMU565

Note  This is only available for C++ based development.
 

void XMU565( const XMU565 & unnamedParam1)

A constructor for XMU565.

A constructor for XMU565.

Note  This is only available for C++ based development.

XMU565 & operator=( const XMU565 & unnamedParam1)

void XMU565( XMU565 && unnamedParam1)

A constructor for XMU565.

A constructor for XMU565.

Note  This is only available for C++ based development.

XMU565 & operator=( XMU565 && unnamedParam1)

Assigns the vector component data from one instance of XMU565 to the current instance of XMU565.

This operator assigns the vector component data from one instance of XMU565 to the current instance of XMU565.

void XMU565( uint16_t Packed) noexcept

Initializes a new instance of XMU565 from a uint16_t variable containing component data in a packed format.

This constructor initializes a new instance of XMU565 from a uint16_t variable containing component data in a packed format.

Note  This constructor is only available under C++.
 

void XMU565( uint8_t _x, uint8_t _y, uint8_t _z) noexcept

Initializes a new instance of XMU565 from three int8_t arguments.

This constructor initializes a new instance of <wdcml:xref rid="dxmath.xmu565" targtype="struct">XMU565 </wdcml:xref> from three int8_t arguments.

Note  This is only available for C++ based development.

void XMU565( const uint8_t *pArray) noexcept

Initializes a new instance of XMU565 from a three element int8_t array.

This constructor initializes a new instance of XMU565 from a three element int8_t array.

Note  This is only available for C++ based development.

void XMU565( float _x, float _y, float _z) noexcept

Initializes a new instance of XMU565 from three float arguments.

This constructor initializes a new instance of XMU565 from three float arguments.

Note  This constructor is only available under C++.
 

void XMU565( const float *pArray) noexcept

Initializes a new instance of XMU565 from a three element float array.

This constructor initializes a new instance of XMU565 from a three element float array.

Note  This is only available for C++ based development.

void operator uint16_t() noexcept

Returns an instance of uint16_t containing the components of the XMU555 instance in a packed format.

This operator returns an instance of uint16_t containing the components of the XMU555 instance in a packed format.

Note  This operator is only available under C++.
 

XMU565 & operator=( uint16_t Packed) noexcept

Assigns the vector component data packed in an instance of uint16_t to the current instance of XMU565.

Assigns the vector component data packed in an instance of uint16_t to the current instance of XMU565.

Note  This operator is only available under C++.
 

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

Requirement Value
Header directxpackedvector.h

See also

DirectXMath Library Structures

XMU565 Extensions