MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / uint32_t NumMipTexels

Method uint32_t NumMipTexels

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

Source from the content-addressed store, hash-verified

48}
49
50LLGL_EXPORT std::uint32_t NumMipTexels(const TextureType type, const Extent3D& extent, std::uint32_t mipLevel)
51{
52 auto mipExtent = GetMipExtent(type, extent, mipLevel);
53 return (mipExtent.width * mipExtent.height * mipExtent.depth);
54}
55
56LLGL_EXPORT std::uint32_t NumMipTexels(const TextureType type, const Extent3D& extent, const TextureSubresource& subresource)
57{

Callers

nothing calls this directly

Calls 2

GetMipExtentFunction · 0.85
CalcTextureExtentFunction · 0.85

Tested by

no test coverage detected