|
|
|
@ -1402,7 +1402,40 @@ namespace glm |
|
|
|
|
return fi.f; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
inline float intBitsToFloat(uint const & value) |
|
|
|
|
template <typename T> |
|
|
|
|
inline detail::tvec2<float> intBitsToFloat |
|
|
|
|
( |
|
|
|
|
detail::tvec2<T> const & value |
|
|
|
|
) |
|
|
|
|
{ |
|
|
|
|
return detail::tvec2<T>( |
|
|
|
|
intBitsToFloat(value.x), |
|
|
|
|
intBitsToFloat(value.y)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <typename T> |
|
|
|
|
inline detail::tvec3<float> intBitsToFloat |
|
|
|
|
( |
|
|
|
|
detail::tvec3<T> const & value |
|
|
|
|
) |
|
|
|
|
{ |
|
|
|
|
return detail::tvec3<T>( |
|
|
|
|
intBitsToFloat(value.x), |
|
|
|
|
intBitsToFloat(value.y)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <typename T> |
|
|
|
|
inline detail::tvec4<float> intBitsToFloat |
|
|
|
|
( |
|
|
|
|
detail::tvec4<T> const & value |
|
|
|
|
) |
|
|
|
|
{ |
|
|
|
|
return detail::tvec4<T>( |
|
|
|
|
intBitsToFloat(value.x), |
|
|
|
|
intBitsToFloat(value.y)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
inline float uintBitsToFloat(uint const & value) |
|
|
|
|
{ |
|
|
|
|
union |
|
|
|
|
{ |
|
|
|
@ -1415,36 +1448,36 @@ namespace glm |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <typename T> |
|
|
|
|
inline detail::tvec2<float> intBitsToFloat |
|
|
|
|
inline detail::tvec2<float> uintBitsToFloat |
|
|
|
|
( |
|
|
|
|
detail::tvec2<T> const & value |
|
|
|
|
) |
|
|
|
|
{ |
|
|
|
|
return detail::tvec2<T>( |
|
|
|
|
intBitsToFloat(value.x), |
|
|
|
|
intBitsToFloat(value.y)); |
|
|
|
|
uintBitsToFloat(value.x), |
|
|
|
|
uintBitsToFloat(value.y)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <typename T> |
|
|
|
|
inline detail::tvec3<float> intBitsToFloat |
|
|
|
|
inline detail::tvec3<float> uintBitsToFloat |
|
|
|
|
( |
|
|
|
|
detail::tvec3<T> const & value |
|
|
|
|
) |
|
|
|
|
{ |
|
|
|
|
return detail::tvec3<T>( |
|
|
|
|
intBitsToFloat(value.x), |
|
|
|
|
intBitsToFloat(value.y)); |
|
|
|
|
uintBitsToFloat(value.x), |
|
|
|
|
uintBitsToFloat(value.y)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <typename T> |
|
|
|
|
inline detail::tvec4<float> intBitsToFloat |
|
|
|
|
inline detail::tvec4<float> uintBitsToFloat |
|
|
|
|
( |
|
|
|
|
detail::tvec4<T> const & value |
|
|
|
|
) |
|
|
|
|
{ |
|
|
|
|
return detail::tvec4<T>( |
|
|
|
|
intBitsToFloat(value.x), |
|
|
|
|
intBitsToFloat(value.y)); |
|
|
|
|
uintBitsToFloat(value.x), |
|
|
|
|
uintBitsToFloat(value.y)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <typename genType> |
|
|
|
|