pub fn XMStoreFloat3x4(pDestination: &mut XMFLOAT3X4, M: FXMMATRIX)Expand description
Stores an XMMATRIX in an XMFLOAT3X4.
§Parameters
pDestination Type: XMFLOAT3X4 *Pointer to the XMFLOAT3X4 structure in which to store the data.
M Type: XMMATRIXMatrix containing the data to store.
§Return value
None
§Remarks
XMFLOAT3X4 is a row-major form of the matrix.
To write out column-major data requires that the XMMATRIX be transposed via XMMatrixTranspose before calling the store function.
§Example
let m = XMMatrix::from(&[
[10.0, 11.0, 12.0, 0.0],
[13.0, 14.0, 15.0, 0.0],
[16.0, 17.0, 18.0, 0.0],
[19.0, 20.0, 21.0, 1.0],
]);
let mut data = XMFLOAT3X4::default();
XMStoreFloat3x4(&mut data, *m);
let data: &[[f32; 4]; 3] = data.as_ref();
assert_eq!(data, &[
[10.0, 13.0, 16.0, 19.0],
[11.0, 14.0, 17.0, 20.0],
[12.0, 15.0, 18.0, 21.0],
]);
§Reference
https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMStoreFloat3x4