mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
add settings reset
This commit is contained in:
parent
a43002cf54
commit
d46afee063
1488 changed files with 448798 additions and 0 deletions
17
libs/include/glm/gtx/texture.inl
Normal file
17
libs/include/glm/gtx/texture.inl
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