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

Method Set

trinityal/Tr2MemoryCounterAL.cpp:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void Tr2MemoryCounterAL::Set( MemoryType memoryType, size_t size )
45{
46 Reset();
47
48 m_memoryType = memoryType;
49 m_size = size;
50 if( !m_size )
51 {
52 return;
53 }
54 UpdateCounters( int32_t( m_size ) );
55}
56
57void Tr2MemoryCounterAL::Grow( size_t size )
58{

Callers 9

OnTickMethod · 0.45
PyGetPixelMethod · 0.45
EndMethod · 0.45
PresentMethod · 0.45
CreateMethod · 0.45
CreateBackBuffersMethod · 0.45
PresentMethod · 0.45
CreateMethod · 0.45
AttachMethod · 0.45

Calls 4

ResetFunction · 0.85
GetTrueMipCountMethod · 0.80
GetMipSizeMethod · 0.80
GetArraySizeMethod · 0.45

Tested by

no test coverage detected