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

Method ReportUsedScreenSizes

trinity/Eve/EveInstancedMeshManager.cpp:984–993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982}
983
984void EveInstancedMeshManager::ReportUsedScreenSizes() const
985{
986 for( auto& [mesh, meshInfo] : m_meshInstances )
987 {
988 if( auto meshData = mesh.geometry->GetMeshLod( mesh.meshIndex, 0 ) )
989 {
990 meshInfo.material->UsedWithScreenSize( meshInfo.maxScreenSize, meshInfo.radius, meshData->m_uvDensities );
991 }
992 }
993}
994
995void EveInstancedMeshManager::InstanceFlags::AddBatchType( TriBatchType type )
996{

Callers 1

EndRenderMethod · 0.80

Calls 2

GetMeshLodMethod · 0.45
UsedWithScreenSizeMethod · 0.45

Tested by

no test coverage detected