Column operations on XMMATRIX

Started by
2 comments, last by matt77hias 6 years, 8 months ago

Is it possible to do column operations (addition, subtraction) directly on an XMMATRIX (i.e. XMMATRIX alternative for XMVECTOR swizzle operations) without using _XM_NO_INTRINSICS_?

I use these operations for creating the view frustum planes directly from the transformation matrices.

🧙

Advertisement

XMMATRIX contains four SSE registers, containing four rows of data. You could transpose it to get four registers holding four columns of data.

51 minutes ago, Hodgman said:

XMMATRIX contains four SSE registers, containing four rows of data. You could transpose it to get four registers holding four columns of data.

Works like a charm!

🧙

This topic is closed to new replies.

Advertisement