MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / MipLevelsCount

Function MipLevelsCount

Source/Engine/Graphics/RenderTools.cpp:799–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797}
798
799int32 MipLevelsCount(int32 width)
800{
801 int32 result = 1;
802 while (width > 1)
803 {
804 width >>= 1;
805 result++;
806 }
807 return result;
808}
809
810int32 MipLevelsCount(int32 width, int32 height)
811{

Callers 8

RenderMethod · 0.85
InitCSharpMethod · 0.85
FromTextureDataMethod · 0.85
SetupHeightMapMethod · 0.85
SetupSplatMapMethod · 0.85
ImportTextureStbMethod · 0.85
GenerateModelSDFMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected