XMBYTE4 union
A 4D 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 XMBYTE4 when you are programming in C++, see XMBYTE4 Extensions.
Syntax
union XMBYTE4 { union { struct { uint8_t x; uint8_t y; uint8_t z; uint8_t w; }; uint32_t v; }; };
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.
- z
-
Signed 8-bit integer value in the range [-127, 127] describing the z-coordinate of the vector.
- w
-
Signed 8-bit integer value in the range [-127, 127] describing the w-coordinate of the vector.
- v
-
Unsigned 32-bit integer representing the 4D vector.
Remarks
XMBYTE4 can be loaded into instances of XMVECTOR by using
XMLoadByte4.
Instances of XMVECTOR can be stored into an instance of XMBYTE4 with XMStoreByte4.
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