mirror of
https://github.com/g-truc/glm.git
synced 2024-11-30 03:44:38 +00:00
Add support for doing a (0.0, 0.0, 0.0, 0.0) initialization in the default constructor of fvec4SIMD().
This is disabled by default, but enabled with GLM_SIMD_ENABLE_DEFAULT_INIT. This makes toggling between SIMD and non-SIMD builds a bit easier.
This commit is contained in:
parent
87c90590be
commit
efff3add87
@ -20,6 +20,9 @@ struct mask
|
|||||||
// Implicit basic constructors
|
// Implicit basic constructors
|
||||||
|
|
||||||
GLM_FUNC_QUALIFIER fvec4SIMD::fvec4SIMD()
|
GLM_FUNC_QUALIFIER fvec4SIMD::fvec4SIMD()
|
||||||
|
#ifdef GLM_SIMD_ENABLE_DEFAULT_INIT
|
||||||
|
: Data(_mm_set_ps(0.0f, 0.0f, 0.0f, 0.0f))
|
||||||
|
#endif
|
||||||
{}
|
{}
|
||||||
|
|
||||||
GLM_FUNC_QUALIFIER fvec4SIMD::fvec4SIMD(__m128 const & Data) :
|
GLM_FUNC_QUALIFIER fvec4SIMD::fvec4SIMD(__m128 const & Data) :
|
||||||
|
Loading…
Reference in New Issue
Block a user