Returns the 1D extent for the specified MIP-map
| 118 | |
| 119 | // Returns the 1D extent for the specified MIP-map |
| 120 | static std::uint32_t MipExtent(std::uint32_t extent, std::uint32_t mipLevel) |
| 121 | { |
| 122 | return std::max(1u, extent >> mipLevel); |
| 123 | } |
| 124 | |
| 125 | LLGL_EXPORT Extent3D GetMipExtent(const TextureType type, const Extent3D& e, std::uint32_t m) |
| 126 | { |