Crash after m = XMMatrixIdentity() - alignment memory in classes?

前端 未结 4 921
旧时难觅i
旧时难觅i 2020-12-20 15:34

I was looking at the tutorials in DirectX SDK. Tutorial 5 works fine, but after I have copied and separated the code to my own classes, I got strange error during launching

4条回答
  •  礼貌的吻别
    2020-12-20 15:58

    Thank you.

    Finally I decided to use XMLoadFloat4x4() and XMStoreFloat4x4() functions. I store members of class as Float4x4 and convert them for temporary use to XMMATRIX every render() loop. But... it's a fast or dumb solution?

提交回复
热议问题