A 2D vector consisting of two single-precision floating-point values.
For a list of additional functionality such as constructors and operators that are available using XMFLOAT2 when you are programming in C++, see XMFLOAT2 Extensions.
Note
See DirectXMath Library Type Equivalences for information about equivalent D3DDECLTYPE, D3DFORMAT, and DXGI_FORMAT objects.
struct XMFLOAT2
XMFLOAT2 can be loaded into instances of XMVECTOR by using XMLoadFloat2.
Instances of XMVECTOR can be stored into an instance of XMFLOAT2 with XMStoreFloat2.
Namespace: Use DirectX
Header: Declared in directxmath.h.