Initial commit
This commit is contained in:
parent
0889e4de0d
commit
10bc916711
456 changed files with 119668 additions and 0 deletions
17
vendor/include/glm/gtx/texture.inl
vendored
Normal file
17
vendor/include/glm/gtx/texture.inl
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
/// @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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue