Collection of DPF-based plugins for packaging
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.

19 lines
339B

  1. /// @ref gtx_texture
  2. /// @file glm/gtx/texture.inl
  3. namespace glm
  4. {
  5. template <length_t L, typename T, qualifier Q>
  6. inline T levels(vec<L, T, Q> const& Extent)
  7. {
  8. return glm::log2(compMax(Extent)) + static_cast<T>(1);
  9. }
  10. template <typename T>
  11. inline T levels(T Extent)
  12. {
  13. return vec<1, T, defaultp>(Extent).x;
  14. }
  15. }//namespace glm