|
| uint32_t | currentFrame = 0 |
| |
| uint32_t | currentTime = 0 |
| |
| std::unordered_map< TreeIx, SlotIx > | tree |
| |
| std::vector< SlotIx > | lru |
| | Slots sorted s.t. the least recently used items is at end.
|
| |
| std::vector< Slot > | slots |
| |
| uint32_t | lruPointer = 0 |
| | Points to one past the least recently and recycable item, decrements and zero means nothing to recycle.
|
| |
| uint32_t | maxItemCount = 0 |
| | Number of tiles in cache.
|
| |
| uint32_t | minRetryDelay = 0 |
| | Initial delay for retrying a fetch. For subsequent retries this delay is doubled each time.
|
| |
Definition at line 88 of file TexAtlasSystem.h.
◆ getOrAllocCacheSlot()
| Cogs::Core::TexAtlas::SlotIx Cogs::Core::TexAtlas::Cache::getOrAllocCacheSlot |
( |
Context * |
context, |
|
|
Fetcher & |
fetcher, |
|
|
const glm::uvec3 & |
tileId |
|
) |
| |
◆ setStateCancelled()
| void Cogs::Core::TexAtlas::Cache::setStateCancelled |
( |
Slot & |
slot | ) |
|
|
inline |
◆ setStateFailed()
| void Cogs::Core::TexAtlas::Cache::setStateFailed |
( |
Slot & |
slot | ) |
|
|
inline |
◆ setStateLoaded()
| void Cogs::Core::TexAtlas::Cache::setStateLoaded |
( |
Slot & |
slot | ) |
|
|
inline |
◆ setStateLoading()
| void Cogs::Core::TexAtlas::Cache::setStateLoading |
( |
Slot & |
slot | ) |
|
|
inline |
◆ setStateNone()
| void Cogs::Core::TexAtlas::Cache::setStateNone |
( |
Slot & |
slot | ) |
|
|
inline |
◆ update()
| void Cogs::Core::TexAtlas::Cache::update |
( |
uint32_t |
currentFrame, |
|
|
uint32_t |
currentTime, |
|
|
uint32_t |
minRetryDelay, |
|
|
uint32_t |
maxItemCount |
|
) |
| |
◆ currentFrame
| uint32_t Cogs::Core::TexAtlas::Cache::currentFrame = 0 |
◆ currentTime
| uint32_t Cogs::Core::TexAtlas::Cache::currentTime = 0 |
◆ lru
| std::vector<SlotIx> Cogs::Core::TexAtlas::Cache::lru |
Slots sorted s.t. the least recently used items is at end.
Definition at line 111 of file TexAtlasSystem.h.
◆ lruPointer
| uint32_t Cogs::Core::TexAtlas::Cache::lruPointer = 0 |
Points to one past the least recently and recycable item, decrements and zero means nothing to recycle.
Definition at line 114 of file TexAtlasSystem.h.
◆ maxItemCount
| uint32_t Cogs::Core::TexAtlas::Cache::maxItemCount = 0 |
◆ minRetryDelay
| uint32_t Cogs::Core::TexAtlas::Cache::minRetryDelay = 0 |
Initial delay for retrying a fetch. For subsequent retries this delay is doubled each time.
Definition at line 116 of file TexAtlasSystem.h.
◆ slots
| std::vector<Slot> Cogs::Core::TexAtlas::Cache::slots |
◆ tree
| std::unordered_map<TreeIx, SlotIx> Cogs::Core::TexAtlas::Cache::tree |
The documentation for this struct was generated from the following files: