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

Method AllocateInstanceData

trinity/Eve/EveInstancedMeshManager.cpp:962–969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

960}
961
962EveInstancedMeshManager::InstanceBuffer::Allocation EveInstancedMeshManager::AllocateInstanceData( uint32_t count, bool isDynamic )
963{
964 if( isDynamic )
965 {
966 return m_dynamicInstanceBuffer.Allocate( count * sizeof( DynamicPerInstanceBufferElement ) );
967 }
968 return m_staticInstanceBuffer.Allocate( count * sizeof( StaticPerInstanceBufferElement ) );
969}
970
971uint32_t EveInstancedMeshManager::GetMeshLod( const MeshData& meshInfo, float screenSize )
972{

Callers

nothing calls this directly

Calls 1

AllocateMethod · 0.45

Tested by

no test coverage detected