XMBYTE2 structure

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

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

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

Syntax


struct XMBYTE2 {
  uint8_t x;
  uint8_t y;
};

Members

x

Signed 8-bit integer value in the range [-127, 127] describing the x-coordinate of the vector.

y

Signed 8-bit integer value in the range [-127, 127] describing the y-coordinate of the vector.

Remarks

You can use XMLoadByte2 to load XMBYTE2 into instances of XMVECTOR.

You can use XMStoreByte2 to store instances of XMVECTOR into an instance of XMBYTE2.

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

XMBYTE2 Extensions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.