[indent=1]However, often it is easier and more compact to avoid using XMVECTOR or XMMATRIX directly in a class or structure. Instead, make use of the XMFLOAT3
, and so on, as members of your structure. Further, you can use the Vector Loading
and Vector Storage
functions to move the data efficiently into XMVECTOR or XMMATRIX local variables, perform computations, and store the results. There are also streaming functions (XMVector3TransformStream
, and so on) that efficiently operate directly on arrays of these data types.