XMDECN4::operator uint32_t function (directxpackedvector.h)

Returns an instance of uint32_t containing the components of the XMDECN4 instance in a packed format.

Returns an instance of uint32_t containing the components of the XMDECN4 instance in a packed format.

Note  This operator is only available under C++.
 

Syntax

void operator uint32_t() noexcept;

Return value

Contains the four vector components of an instance of XMDECN4 in a packed format.

Remarks

The values of the XMDECN4 components returned are not normalized, and are in the following format:

  • The first 10 bits (bits 0- 9) of the return value are the x component of the current instance of XMDECN4.
  • The second 10 bits (bits 10-19) of the return value are the y component of the current instance of XMDECN4.
  • The third 10 bits (bits 20-29) of the return value are the z component of the current instance of XMDECN4.
  • The last 2 bits (bits 30-31) of the return value are the w component of the current instance of XMDECN4.

Requirements

Requirement Value
Target Platform Windows
Header directxpackedvector.h

See also

Reference

XMDECN4

XMDECN4 Operators