Windows Dev Center

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.

XMHALF4 structure

Describes a 4D vector consisting of four half-precision (16-bit) floating-point values.

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

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

Syntax


struct XMHALF4 {
  HALF x;
  HALF y;
  HALF z;
  HALF w;
};

Members

x

HALF value describing the x-coordinate.

y

HALF value describing the y-coordinate.

z

HALF value describing the z-coordinate.

w

HALF value describing the w-coordinate.

Remarks

The definition of the HALF type used under DirectXMath is consistent with the IEEE standard, and consists of a sign bit, a 5 bit biased exponent, and a 10 bit mantissa:



                    [15] SEEEEEMMMMMMMMMM [0]
	

XMHALF4 can be loaded into instances of XMVECTOR by using XMLoadHalf4.

Instances of XMVECTOR can be stored into an instance of XMHALF4 with XMStoreHalf4.

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

XMHALF4 Extensions

 

 

Community Additions

Show:
© 2015 Microsoft