I am using DirectXMath.h where all multiplications and operations are done with XMVECTOR(a SIMD wrapper) and for storage is used XMFLOAT3 which contains 3 floats.However in this specific piece of code I really need to add a * operator for XMFLOAT3(for both XMFLOAT3*XMFLOAT3 and XMFLOAT3*float).Can I do that?Or must I tamper with the DirectXMath headers in the SDK?
I am using DirectXMath.h where all multiplications and operations are done with XMVECTOR(a SIMD
Share
Go right ahead, just define
operator*: