#include <OgreVaoManager.h>
◆ MemoryStatsEntry()
Ogre::VaoManager::MemoryStatsEntry::MemoryStatsEntry |
( |
uint32 |
_poolType, |
|
|
uint32 |
_poolIdx, |
|
|
size_t |
_offset, |
|
|
size_t |
_sizeBytes, |
|
|
size_t |
_poolCapacity, |
|
|
bool |
_bPoolHasTextures |
|
) |
| |
|
inline |
◆ getCombinedPoolIdx()
uint64 Ogre::VaoManager::MemoryStatsEntry::getCombinedPoolIdx |
( |
| ) |
const |
|
inline |
getCombinedPoolIdx You can use this code to calculate pool capacity per poolType:
std::set<uint64_t> poolsSeen;
size_t usedBytes = 0u;
size_t capacityBytes = 0u;
VaoManager::MemoryStatsEntryVec::const_iterator itor = memoryStats.begin();
VaoManager::MemoryStatsEntryVec::const_iterator endt = memoryStats.end();
while( itor != endt )
{
const uint64_t poolVal = itor->getCombinedPoolIdx();
dynUsedBytes += itor->sizeBytes;
if( poolsSeen.find( poolVal ) == poolsSeen.end() )
{
capacityBytes += itor->poolCapacity;
poolsSeen.insert( poolVal );
}
++itor;
}
- Returns
◆ bPoolHasTextures
bool Ogre::VaoManager::MemoryStatsEntry::bPoolHasTextures |
Relevant for Vulkan: when this value is true, the whole pool may contain texture data (not necessarily this block) See Tutorial_Memory on how to deal with this parameter.
◆ offset
size_t Ogre::VaoManager::MemoryStatsEntry::offset |
◆ poolCapacity
size_t Ogre::VaoManager::MemoryStatsEntry::poolCapacity |
This value is the same for all entries with same getCombinedPoolIdx.
◆ poolIdx
uint32 Ogre::VaoManager::MemoryStatsEntry::poolIdx |
◆ poolType
uint32 Ogre::VaoManager::MemoryStatsEntry::poolType |
◆ sizeBytes
size_t Ogre::VaoManager::MemoryStatsEntry::sizeBytes |
The documentation for this struct was generated from the following file: