Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XMDEC4 union

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

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

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

Syntax


union XMDEC4 {
  union {
    struct {
      int32_t x;
      int32_t y;
      int32_t z;
      int32_t w;
    };
    uint32_t v;
  };
};

Members

x

Signed integer value in the range [-511, 511] describing the x-coordinate of the vector.

y

Signed integer value in the range [-511, 511] describing the y-coordinate of the vector.

z

Signed integer value in the range [-511, 511] describing the z-coordinate of the vector.

w

Signed integer value in the range [-1, 1] describing the w-coordinate of the vector.

v

Unsigned 32-bit integer representing the 4D vector.

Remarks

XMDEC4 can be loaded into instances of XMVECTOR by using XMLoadDec4.

Instances of XMVECTOR can be stored into an instance of XMDEC4 with XMStoreDec4.

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

DirectXMath Library Structures
XMDEC4 Extensions

 

 

Show:
© 2017 Microsoft