Skip to content

Latest commit

 

History

History
100 lines (75 loc) · 3.22 KB

ns-directxpackedvector-xmbyte2.md

File metadata and controls

100 lines (75 loc) · 3.22 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:directxpackedvector.XMBYTE2
XMBYTE2 (directxpackedvector.h)
A 2D vector where each component is a signed integer, 8-bits (1 byte) in length.
XMBYTE2
XMBYTE2 structure [DirectX Math Support APIs]
XMBYTE2 structure
about XMBYTE2 structure
directxpackedvector/XMBYTE2
dxmath.xmbyte2
dxmath\xmbyte2.htm
dxmath
T:Microsoft.directx_sdk.reference.XMBYTE2
12/05/2018
XMBYTE2, XMBYTE2 structure [DirectX Math Support APIs], XMBYTE2 structure,about XMBYTE2 structure, directxpackedvector/XMBYTE2, dxmath.xmbyte2
directxpackedvector.h
Windows
Windows
19H1
XMBYTE2
directxpackedvector/XMBYTE2
c++
APIRef
kbSyntax
HeaderDef
DirectXPackedVector.h
XMBYTE2

XMBYTE2 structure

-description

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.
 

-struct-fields

-field x

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

-field y

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

-field v

-field XMBYTE2

TBD

-field operator=

TBD

-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.

-see-also

DirectXMath Library Structures

XMBYTE2 Extensions