mirror of
https://github.com/g-truc/glm.git
synced 2026-08-30 15:08:12 +00:00
This is added as part of the GLM_EXT_matrix_common extension, as this function is not provided by the core GLSL specification (version 4.20). The implementation of this glm::abs(mat<>) function mirrors the glm::abs(vec<>) implementation. It should be functionning the same in every way as the vec implementation. Bonus points : AFAICT this allows to vectorize operations on compilers that support optimization of these patterns, just like the functor1<> struct in _vectorize.hpp for vectors.
1.7 KiB
1.7 KiB