Hi
I want to write an interface for math, that will hade SIMD. For now using xnamath.h which has SIMD, pseudo code:
Vector v = LoadSIMD( vector3_stored )
// do some operations on v
vector3_stored = StoreSIMD( v )
The reason for an interface, is so I can switch for another library, that maybe not platform dependet, and it may not have SIMD support,
so the question is, should the interface written in a general way that the use will now know if SIMD is being used.
Or should I maybe write something that they explicitly tell and use SIMD.
The last way creates problem, if writing specific code, for game or demo (anything!!!) then it must be written for different versions.
But this is easiest as implementation goes.
This is for 3D rendering, Vector, Matric, Planes, maybe something more.
Any insight or ideas are welcome
So more , like how would you people solve if this interface needed to be switchable for other math lib (any for that matter)
// I hope I expressed my self correctly ^^, also
// Thanks in advance