| 960 | } |
| 961 | |
| 962 | EveInstancedMeshManager::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 | |
| 971 | uint32_t EveInstancedMeshManager::GetMeshLod( const MeshData& meshInfo, float screenSize ) |
| 972 | { |