Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

XMVECTOR to float

$
0
0
For vector operations which mathematically result in a single scalar f (such as XMVector3Length or XMPlaneDotCoord), which of the following extractions from an XMVECTOR is preferred: 1. The very explicit store operation const XMVECTOR v = ...; float f; XMStoreFloat(&f, v); 2. A shorter but less explicit version (note that const can now be used explicitly) const XMVECTOR v = ...; const float f = XMVectorGetX(v);

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>