aras-p / test_math_vec_debug_perf

3 stars 0 forks source link

Vector extensions? #2

Open ib00 opened 1 month ago

ib00 commented 1 month ago

I know there's issues with portability, but what about built-in vector extensions in clang and GCC?

aras-p commented 1 month ago

That loses MSVC support, and at this point would be out of question due to that reason. Additionally in Blender's case, they in several places want "a vector of matrices" or "a vector of some other complex type"; something you can't express with gcc/clang vector extensions. I would not necessarily try to put that into the same C++ type, but they did.

ib00 commented 1 month ago

Thanks. Yes, of course, these vector extensions are not portable. I did find code generation to be pretty good.