XMStoreFloat3PK

Stores an XMVECTOR in a XMFLOAT3PK.

Syntax

void XMStoreFloat3PK(
         XMFLOAT3PK *pDestination,
         XMVECTOR V
)  

Parameters

pDestination
Type: XMFLOAT3PK *

[out]

Address at which to store the data.

V
Type: XMVECTOR 

[in]

Vector containing the data to store.

Return value

None.

Remarks

The following pseudocode demonstrates the operation of the function.

  XMVECTOR N;

  static const XMVECTOR  Max = { 65024.f, 65024.f, 64512.f, 0 };
  N = XMVectorClamp(V, XMVectorZero(), Max);

  ConvertToFloat11( N.x, &pDestination->xm, &pDestination->xe);
  ConvertToFloat11( N.y, &pDestination->ym, &pDestination->ye);
  ConvertToFloat10( N.z, &pDestination->zm, &pDesitnation->ze);  

Requirements

Header: Declared in directxpackedvector.h.