Fixed code passing matrix to shader due to misunderstanding of matrix element layout in memory; XMMatrix is row major while matrix in shader is column major by default.