XMStoreByteN4-Funktion (directxpackedvector.h)

Speichert eine XMVECTOR-Instanz in einem XMBYTEN4-Objekt.

Syntax

void XM_CALLCONV XMStoreByteN4(
  [out] XMBYTEN4  *pDestination,
  [in]  FXMVECTOR V
) noexcept;

Parameter

[out] pDestination

Adresse, an der die Daten gespeichert werden sollen.

[in] V

Vektor mit den zu speichernden Daten.

Rückgabewert

Keine.

Hinweise

Der folgende Pseudocode veranschaulicht den Vorgang der Funktion.

XMVECTOR N;	
static const XMVECTOR  Scale = {127.0f, 127.0f, 127.0f, 127.0f};

N = XMVectorMultiply(V, Scale);
N = XMVectorRound(N);

pDestination->x = (int8_t)N.v[0];
pDestination->y = (int8_t)N.v[1];
pDestination->z = (int8_t)N.v[2];
pDestination->w = (int8_t)N.v[3];

Plattformanforderungen

Microsoft Visual Studio 2010 oder Microsoft Visual Studio 2012 mit dem Windows SDK für Windows 8. Unterstützt für Win32-Desktop-Apps, Windows Store-Apps und Windows Phone 8-Apps.

Anforderungen

   
Zielplattform Windows
Kopfzeile directxpackedvector.h (directXPackedVector.h einschließen)

Weitere Informationen

Vektorspeicherfunktionen der DirectXMath-Bibliothek