Fixed vec3 and vec4 for floattoXint functions
This commit is contained in:
parent
a198721c14
commit
0c70a2b1ea
@ -1376,7 +1376,8 @@ namespace glm
|
|||||||
{
|
{
|
||||||
return detail::tvec3<uint>(
|
return detail::tvec3<uint>(
|
||||||
floatBitsToUint(value.x),
|
floatBitsToUint(value.x),
|
||||||
floatBitsToUint(value.y));
|
floatBitsToUint(value.y),
|
||||||
|
floatBitsToUint(value.z));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
@ -1387,7 +1388,9 @@ namespace glm
|
|||||||
{
|
{
|
||||||
return detail::tvec4<uint>(
|
return detail::tvec4<uint>(
|
||||||
floatBitsToUint(value.x),
|
floatBitsToUint(value.x),
|
||||||
floatBitsToUint(value.y));
|
floatBitsToUint(value.y),
|
||||||
|
floatBitsToUint(value.z),
|
||||||
|
floatBitsToUint(value.w));
|
||||||
}
|
}
|
||||||
|
|
||||||
GLM_FUNC_QUALIFIER float intBitsToFloat(int const & value)
|
GLM_FUNC_QUALIFIER float intBitsToFloat(int const & value)
|
||||||
@ -1421,7 +1424,8 @@ namespace glm
|
|||||||
{
|
{
|
||||||
return detail::tvec3<float>(
|
return detail::tvec3<float>(
|
||||||
intBitsToFloat(value.x),
|
intBitsToFloat(value.x),
|
||||||
intBitsToFloat(value.y));
|
intBitsToFloat(value.y),
|
||||||
|
intBitsToFloat(value.z));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
@ -1432,7 +1436,9 @@ namespace glm
|
|||||||
{
|
{
|
||||||
return detail::tvec4<float>(
|
return detail::tvec4<float>(
|
||||||
intBitsToFloat(value.x),
|
intBitsToFloat(value.x),
|
||||||
intBitsToFloat(value.y));
|
intBitsToFloat(value.y),
|
||||||
|
intBitsToFloat(value.z),
|
||||||
|
intBitsToFloat(value.w));
|
||||||
}
|
}
|
||||||
|
|
||||||
GLM_FUNC_QUALIFIER float uintBitsToFloat(uint const & value)
|
GLM_FUNC_QUALIFIER float uintBitsToFloat(uint const & value)
|
||||||
@ -1466,7 +1472,8 @@ namespace glm
|
|||||||
{
|
{
|
||||||
return detail::tvec3<float>(
|
return detail::tvec3<float>(
|
||||||
uintBitsToFloat(value.x),
|
uintBitsToFloat(value.x),
|
||||||
uintBitsToFloat(value.y));
|
uintBitsToFloat(value.y),
|
||||||
|
uintBitsToFloat(value.z));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
@ -1477,7 +1484,9 @@ namespace glm
|
|||||||
{
|
{
|
||||||
return detail::tvec4<float>(
|
return detail::tvec4<float>(
|
||||||
uintBitsToFloat(value.x),
|
uintBitsToFloat(value.x),
|
||||||
uintBitsToFloat(value.y));
|
uintBitsToFloat(value.y),
|
||||||
|
uintBitsToFloat(value.z),
|
||||||
|
uintBitsToFloat(value.w));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user