XMU565 structure (directxpackedvector.h)
A 3D vector with x- and z- components represented as 5-bit unsigned integer values, and the y- component as a 6-bit unsigned integer value.
For a list of more functionality such as constructors and operators that are available
using XMU565
when you are programming in C++, see XMU565 Extensions.
Syntax
struct XMU565 {
union {
struct {
uint16_t x : 5;
uint16_t y : 6;
uint16_t z : 5;
};
uint16_t v;
};
void XMU565();
void XMU565(
const XMU565 & unnamedParam1
);
XMU565 & operator=(
const XMU565 & unnamedParam1
);
void XMU565(
XMU565 && unnamedParam1
);
XMU565 & operator=(
XMU565 && unnamedParam1
);
void XMU565(
uint16_t Packed
) noexcept;
void XMU565(
uint8_t _x,
uint8_t _y,
uint8_t _z
) noexcept;
void XMU565(
const uint8_t *pArray
) noexcept;
void XMU565(
float _x,
float _y,
float _z
) noexcept;
void XMU565(
const float *pArray
) noexcept;
void operator uint16_t() noexcept;
XMU565 & operator=(
uint16_t Packed
) noexcept;
};
Members
5 x
The 5-bit x component.
6 y
The 5-bit y component.
5 z
The 5-bit z component.
v
Unsigned short representing the 3D vector.
Default constructor for XMU565
Default constructor for XMU565
void XMU565( const XMU565 & unnamedParam1)
A constructor for XMU565
.
A constructor for XMU565.
XMU565 & operator=( const XMU565 & unnamedParam1)
void XMU565( XMU565 && unnamedParam1)
A constructor for XMU565
.
A constructor for XMU565.
XMU565 & operator=( XMU565 && unnamedParam1)
Assigns the vector component data from one instance of XMU565
to the current instance of XMU565
.
This operator assigns the vector component data from one instance of XMU565 to the current instance of XMU565
.
void XMU565( uint16_t Packed) noexcept
Initializes a new instance of XMU565
from a uint16_t
variable containing
component data in a packed format.
This constructor initializes a new instance of XMU565 from a
uint16_t
variable containing component data in a packed format.
void XMU565( uint8_t _x, uint8_t _y, uint8_t _z) noexcept
Initializes a new instance of XMU565 from three int8_t
arguments.
This constructor initializes a new instance of <wdcml:xref rid="dxmath.xmu565" targtype="struct">XMU565 </wdcml:xref> from three int8_t
arguments.
void XMU565( const uint8_t *pArray) noexcept
Initializes a new instance of XMU565 from a three element int8_t
array.
This constructor initializes a new instance of XMU565 from a three element int8_t
array.
void XMU565( float _x, float _y, float _z) noexcept
Initializes a new instance of XMU565
from three float
arguments.
This constructor initializes a new instance of XMU565 from three
float
arguments.
void XMU565( const float *pArray) noexcept
Initializes a new instance of XMU565 from a three element float
array.
This constructor initializes a new instance of XMU565 from a three element float
array.
void operator uint16_t() noexcept
Returns an instance of uint16_t
containing the components of the XMU555
instance in a packed format.
This operator returns an instance of uint16_t
containing the components of the XMU555 instance in a packed format.
XMU565 & operator=( uint16_t Packed) noexcept
Assigns the vector component data packed in an instance of uint16_t
to the current
instance of XMU565
.
Assigns the vector component data packed in an instance of uint16_t
to the current
instance of XMU565.
Remarks
You can use XMLoadU565 to load XMU565
into instances
of XMVECTOR.
You can use XMStoreU565 to store instances of XMVECTOR
into an instance of XMU565
.
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
Requirement | Value |
---|---|
Header | directxpackedvector.h |