|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Entry storing a resource with metadata. More...
#include <ResourcePool.hpp>
Public Attributes | |
| Unique< T > | resource |
| The owned resource. | |
| u32 | refCount = 0 |
| Reference count (0 = freed or evictable). | |
| std::string | path |
| Optional path for caching. | |
| u32 | generation = 0 |
| Reuse counter for stale handle detection. | |
| usize | bytes = 0 |
| Resource size, for the eviction budget (0 = untracked). | |
| bool | evictable = false |
| refCount==0 but retained as a cache entry (in the LRU) | |
| u32 | lruPrev = 0 |
| Intrusive LRU links (entry index; 0 = sentinel/none). | |
| u32 | lruNext = 0 |
| Intrusive LRU links (entry index; 0 = sentinel/none). | |
Entry storing a resource with metadata.
Definition at line 90 of file ResourcePool.hpp.
| usize esengine::resource::ResourcePool< T >::Entry::bytes = 0 |
Resource size, for the eviction budget (0 = untracked).
Definition at line 95 of file ResourcePool.hpp.
| bool esengine::resource::ResourcePool< T >::Entry::evictable = false |
refCount==0 but retained as a cache entry (in the LRU)
Definition at line 96 of file ResourcePool.hpp.
| u32 esengine::resource::ResourcePool< T >::Entry::generation = 0 |
Reuse counter for stale handle detection.
Definition at line 94 of file ResourcePool.hpp.
Referenced by esengine::resource::ResourcePool< T >::forEachAlive(), and esengine::resource::ResourcePool< T >::forEachAlive().
| u32 esengine::resource::ResourcePool< T >::Entry::lruNext = 0 |
Intrusive LRU links (entry index; 0 = sentinel/none).
Definition at line 98 of file ResourcePool.hpp.
| u32 esengine::resource::ResourcePool< T >::Entry::lruPrev = 0 |
Intrusive LRU links (entry index; 0 = sentinel/none).
Definition at line 97 of file ResourcePool.hpp.
| std::string esengine::resource::ResourcePool< T >::Entry::path |
Optional path for caching.
Definition at line 93 of file ResourcePool.hpp.
| u32 esengine::resource::ResourcePool< T >::Entry::refCount = 0 |
Reference count (0 = freed or evictable).
Definition at line 92 of file ResourcePool.hpp.
| Unique<T> esengine::resource::ResourcePool< T >::Entry::resource |
The owned resource.
Definition at line 91 of file ResourcePool.hpp.
Referenced by esengine::resource::ResourcePool< T >::forEachAlive(), and esengine::resource::ResourcePool< T >::forEachAlive().