XMUBYTE2 structure

Describes a 2D vector where each component is a unsigned integer, 8-bits (1 byte) in length.

A 2D vector where each component is a unsigned integer, 8-bits (1 byte) in length.

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

Note  See DirectXMath Library Type Equivalences for information about equivalent D3DDECLTYPE, D3DFORMAT, and DXGI_FORMAT objects.

Syntax


typedef struct {
  uint8_t x;
  uint8_t y;
} _XMUBYTE2;

Members

x

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

y

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

Remarks

You can use XMLoadUByte2 to load XMUBYTE2 into instances of XMVECTOR.

You can use XMStoreUByte2 to store instances of XMVECTOR into an instance of XMUBYTE2.

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

XMUBYTE2 Extensions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft