SBgl 0.1.0
A graphics framework in C99
Loading...
Searching...
No Matches
VoxelPool Struct Reference

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>

Collaboration diagram for VoxelPool:

Data Fields

sbgl_ivec3positions
 
uint64_t * last_used_frames
 
uint8_t * active
 
uint32_t capacity
 
uint64_t current_frame
 

Detailed Description

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.

Field Documentation

◆ active

uint8_t* VoxelPool::active

Flag indicating if the slot is currently in use.

Definition at line 23 of file sbgl_pool.h.

◆ capacity

uint32_t VoxelPool::capacity

Total number of managed slots.

Definition at line 24 of file sbgl_pool.h.

◆ current_frame

uint64_t VoxelPool::current_frame

Current frame counter for LRU tracking.

Definition at line 25 of file sbgl_pool.h.

◆ last_used_frames

uint64_t* VoxelPool::last_used_frames

Frame index when the slot was last accessed.

Definition at line 22 of file sbgl_pool.h.

◆ positions

sbgl_ivec3* VoxelPool::positions

Chunk world coordinates for each slot.

Definition at line 21 of file sbgl_pool.h.


The documentation for this struct was generated from the following file: