Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

XMUDEC4 union

A 4D vector with x-,y-, and z- components represented as 10 bit unsigned integer values, and the w-component as a 2 bit unsigned integer value.

For a list of additional functionality such as constructors and operators that are available using XMUDEC4 when you are programming in C++, see XMUDEC4 Extensions.

Note   See DirectXMath Library Type Equivalences for information about equivalent D3DDECLTYPE, D3DFORMAT, and DXGI_FORMAT objects.

Syntax


union XMUDEC4 {
  union {
    struct {
      uint32_t x;
      uint32_t y;
      uint32_t z;
      uint32_t w;
    };
    uint32_t v;
  };
};

Members

x

Unsigned integer value in the range [0, 1023] describing the x-coordinate of the vector.

y

Unsigned integer value in the range [0, 1023] describing the y-coordinate of the vector.

z

Unsigned integer value in the range [0, 1023] describing the z-coordinate of the vector.

w

Unsigned integer value in the range [0, 3] describing the w-coordinate of the vector.

v

Unsigned 32-bit integer representing the 4D vector.

Remarks

XMUDEC4 can be loaded into instances of XMVECTOR by using XMLoadUDec4.

Instances of XMVECTOR can be stored into an instance of XMUDEC4 with XMStoreUDec4.

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

DirectXPackedVector.h

See also

XMUDEC4 Extensions

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.