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

Method GpuTextureCreated

trinity/Resources/Tr2TextureLodManager.cpp:154–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void Tr2TextureLodManager::GpuTextureCreated( const Tr2BitmapDimensions& desc )
155{
156 auto size = GetTextureSize( desc );
157 m_gpuMemorySize += size;
158 CCP_STATS_SET( textureLodGpuSize, m_gpuMemorySize );
159 CCP_STATS_ADD( textureLodUploadSize, size );
160}
161
162void Tr2TextureLodManager::GpuTextureDestroyed( const Tr2BitmapDimensions& desc )
163{

Callers 2

DoPrepareMethod · 0.80
ProcessLodRequestMethod · 0.80

Calls 1

GetTextureSizeFunction · 0.85

Tested by

no test coverage detected