MCPcopy Create free account
hub / github.com/defold/defold / GetMipmapCount

Function GetMipmapCount

engine/graphics/src/graphics.cpp:976–979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

974 }
975
976 uint8_t GetMipmapCount(uint16_t size)
977 {
978 return (uint8_t) floor(log2f(size)) + 1;
979 }
980
981 PipelineState GetDefaultPipelineState()
982 {

Callers 7

ValidateTextureParamsFunction · 0.85
AcquireResourcesFunction · 0.85
NullSetTextureFunction · 0.85
TEST_FFunction · 0.85
VulkanSetTextureInternalFunction · 0.85

Calls 1

floorFunction · 0.85

Tested by 1

TEST_FFunction · 0.68