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

前端 未结 4 939
旧时难觅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 16:03

    In the Book "Introduction to 3D Game Programming with Directx 11" from "Frank D. Luna" it says:

    Do not use XMMATRIX as Member of a class or Structure. Always use XMFloat4x4 and load and store back if you need it.

提交回复
热议问题