Working on a simple 3D engine I occasionally stumbled upon an invalid access exception on a XMMATRIX transpose operation while invoking rendering in dirty state shapes in my scene. At first I thought it was something on my side, and rolled back some code to sort things out. But I realized the issue persisted. I ended up reducing the scope scope of the problem to the the XMTransposeMatrix call. Here’s an extract of the DirectXMatrix library code where the error is being raised: [crayon-51dafc64e578f/] SSE needs data to be aligned on 16 bytes boundary, not 16 bits, that’s why the shifting is taking place there. [...]
↧