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

Returning XMMATRIX & XMVECTOR from a function

$
0
0
As far as I know, the size of XMMATRIX must be 64 bytes, which is way too big to be returned by a function. However, DirectXMath functions do return this struct. I suppose this has something to do with the SIMD optimization. Should I return this huge struct from my own functions or should I pass it by a reference or pointer? This question will look silly to you if you know how SIMD works, but I don't.

Viewing all articles
Browse latest Browse all 17825

Trending Articles



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