MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / MipExtent

Function MipExtent

deps/LLGL/sources/Renderer/TextureFlags.cpp:120–123  ·  view source on GitHub ↗

Returns the 1D extent for the specified MIP-map

Source from the content-addressed store, hash-verified

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

Callers 1

GetMipExtentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected