Merge pull request #201 from dachziegel/0.9.5
added GLM_FUNC_QUALIFIER to be able to use in CUDA #201
This commit is contained in:
commit
7b03f18e32
@ -255,7 +255,7 @@ namespace detail
|
|||||||
template <typename T, precision P>
|
template <typename T, precision P>
|
||||||
struct compute_dot<tquat, T, P>
|
struct compute_dot<tquat, T, P>
|
||||||
{
|
{
|
||||||
static T call(tquat<T, P> const & x, tquat<T, P> const & y)
|
static GLM_FUNC_QUALIFIER T call(tquat<T, P> const & x, tquat<T, P> const & y)
|
||||||
{
|
{
|
||||||
tvec4<T, P> tmp(x.x * y.x, x.y * y.y, x.z * y.z, x.w * y.w);
|
tvec4<T, P> tmp(x.x * y.x, x.y * y.y, x.z * y.z, x.w * y.w);
|
||||||
return (tmp.x + tmp.y) + (tmp.z + tmp.w);
|
return (tmp.x + tmp.y) + (tmp.z + tmp.w);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user