|
SBgl 0.1.0
A graphics framework in C99
|
VoxelPool manages a fixed number of slots for voxel chunks. It uses a flat array layout to maintain cache efficiency. More...
#include <sbgl_pool.h>

Data Fields | |
| sbgl_ivec3 * | positions |
| uint64_t * | last_used_frames |
| uint8_t * | active |
| uint32_t | capacity |
| uint64_t | current_frame |
VoxelPool manages a fixed number of slots for voxel chunks. It uses a flat array layout to maintain cache efficiency.
Definition at line 20 of file sbgl_pool.h.
| uint8_t* VoxelPool::active |
Flag indicating if the slot is currently in use.
Definition at line 23 of file sbgl_pool.h.
| uint32_t VoxelPool::capacity |
Total number of managed slots.
Definition at line 24 of file sbgl_pool.h.
| uint64_t VoxelPool::current_frame |
Current frame counter for LRU tracking.
Definition at line 25 of file sbgl_pool.h.
| uint64_t* VoxelPool::last_used_frames |
Frame index when the slot was last accessed.
Definition at line 22 of file sbgl_pool.h.
| sbgl_ivec3* VoxelPool::positions |
Chunk world coordinates for each slot.
Definition at line 21 of file sbgl_pool.h.