sockscape/include/client/glm/gtx/texture.inl

18 lines
309 B
Text
Raw Permalink Normal View History

2018-08-13 19:16:46 +00:00
/// @ref gtx_texture
namespace glm
{
template <length_t L, typename T, qualifier Q>
inline T levels(vec<L, T, Q> const& Extent)
{
return glm::log2(compMax(Extent)) + static_cast<T>(1);
}
template <typename T>
inline T levels(T Extent)
{
return vec<1, T, defaultp>(Extent).x;
}
}//namespace glm