XMUINT4 structure (directxmath.h)

A 4D vector where each component is an unsigned integer.

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

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

Syntax

struct XMUINT4 {
  uint32_t  x;
  uint32_t  y;
  uint32_t  z;
  uint32_t  w;
  void      XMUINT4();
  void      XMUINT4(
    const XMUINT4 & 
  );
  XMUINT4 & operator=(
    const XMUINT4 & 
  );
  void      XMUINT4(
    XMUINT4 && 
  );
  XMUINT4 & operator=(
    XMUINT4 && 
  );
  noexcept  XMUINT4(
    uint32_t _x,
    uint32_t _y,
    uint32_t _z,
    uint32_t _w
  );
  noexcept  XMUINT4(
    const uint32_t *pArray
  );
};

Members

x

Unsigned integer value describing the x-coordinate of the vector.

y

Unsigned integer value describing the y-coordinate of the vector.

z

Unsigned integer value describing the z-coordinate of the vector.

w

Unsigned integer value describing the w-coordinate of the vector.

void XMUINT4()

Default constructor for XMUINT4.

Default constructor for XMUINT4.

Note  This constructor is only available under C++.
 

void XMUINT4( const XMUINT4 & )

A constructor for XMUINT4.

A constructor for XMUINT4.

Note  This constructor is only available under C++.

XMUINT4 & operator=( const XMUINT4 & )

Assigns the vector component data from one instance of XMUINT4 to the current instance of XMUINT4.

This operator assigns the vector component data from one instance of XMUINT4 to the current instance of XMUINT4.

Note  This operator is only available under C++.

void XMUINT4( XMUINT4 && )

A constructor for XMUINT4.

A constructor for XMUINT4.

Note  This constructor is only available under C++.

XMUINT4 & operator=( XMUINT4 && )

noexcept XMUINT4( uint32_t _x, uint32_t _y, uint32_t _z, uint32_t _w)

Initializes a new instance of XMUINT4 from four uint32_t arguments.

This constructor initializes a new instance of XMUINT4 from four uint32_t arguments.

Note  This constructor is only available under C++.
 

noexcept XMUINT4( const uint32_t *pArray)

Initializes a new instance of XMUINT4 from a four element uint32_t array argument.

This constructor initializes a new instance of XMUINT4 from a four element uint32_t array argument.

Note  This constructor is only available under C++.

Remarks

You can use XMLoadUInt4 to load XMUINT4 into instances of XMVECTOR.

You can use XMStoreUInt4 to store instances of XMVECTOR into an instance of XMUINT4.

Namespace: Use DirectX

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 directxmath.h

See also

DirectXMath Library Structures

XMUINT4 Extensions