mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-13 15:43:34 +00:00
almost first rendering, fixing renderer issues
This commit is contained in:
17
third_party/glm/gtx/texture.inl
vendored
git.filemode.normal_file
17
third_party/glm/gtx/texture.inl
vendored
git.filemode.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
|
||||
|
||||
Reference in New Issue
Block a user