Fixed ticket #27, missing inline
This commit is contained in:
parent
c13515fb22
commit
e93ca2c762
@ -11,7 +11,7 @@ namespace glm{
|
|||||||
namespace gtx{
|
namespace gtx{
|
||||||
namespace int_10_10_10_2
|
namespace int_10_10_10_2
|
||||||
{
|
{
|
||||||
dword uint10_10_10_2_cast(glm::vec4 const & v)
|
inline dword uint10_10_10_2_cast(glm::vec4 const & v)
|
||||||
{
|
{
|
||||||
return dword(uint(v.x * 2047.f) << 0 | uint(v.y * 2047.f) << 10 | uint(v.z * 2047.f) << 20 | uint(v.w * 3.f) << 30);
|
return dword(uint(v.x * 2047.f) << 0 | uint(v.y * 2047.f) << 10 | uint(v.z * 2047.f) << 20 | uint(v.w * 3.f) << 30);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user