XMUSHORT2 structure
Describes a 2D vector consisting of 16-bit unsigned integer components.
For a list of additional functionality such as constructors and operators that are available
using XMUSHORT2 when you are programming in C++, see XMUSHORT2 Extensions.
Syntax
struct XMUSHORT2 {
uint16_t x;
uint16_t y;
};
Members
- x
-
Unsigned integer in the range [0, 65535] describing the x-coordinate of the vector.
- y
-
Unsigned integer in the range [0, 65535] describing the y-coordinate of the vector.
Remarks
XMUSHORT2 can be loaded into instances of XMVECTOR by using
XMLoadUShort2.
Instances of XMVECTOR can be stored into an instance of XMUSHORT2 with XMStoreUShort2.
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 |
|
|---|
See also