Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
ValidateTextureParams
Function · 0.85
AcquireResources
Function · 0.85
CheckCreateTextureResourceParams
Function · 0.85
NullSetTexture
Function · 0.85
TEST_F
Function · 0.85
VulkanSetTextureInternal
Function · 0.85
PrepareTextureForUploading
Function · 0.85
Calls
1
floor
Function · 0.85
Tested by
1
TEST_F
Function · 0.68