You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
326 B
17 lines
326 B
/// @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
|
|
|
|
|