MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetTextureSize

Function GetTextureSize

trinity/Resources/Tr2TextureLodManager.cpp:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18uint32_t s_loadRequests = 2;
19
20uint32_t GetTextureSize( const Tr2BitmapDimensions& desc )
21{
22 uint32_t size = 0;
23 for( uint32_t i = 0; i < desc.GetTrueMipCount(); ++i )
24 {
25 size += desc.GetMipSize( i );
26 }
27 return size * std::max( 1u, desc.GetArraySize() );
28}
29
30}
31

Callers 4

GpuTextureCreatedMethod · 0.85
GpuTextureDestroyedMethod · 0.85
CpuTextureCreatedMethod · 0.85
CpuTextureDestroyedMethod · 0.85

Calls 3

GetTrueMipCountMethod · 0.80
GetMipSizeMethod · 0.80
GetArraySizeMethod · 0.45

Tested by

no test coverage detected