Toast Engine
Loading...
Searching...
No Matches
renderer::VoxelChangeTracker Class Reference

Finds what changed in each volume between packs and keeps it until a storage carrying it is published. More...

#include <voxel_change_history.hpp>

Public Member Functions

void observe (std::span< const TrackedVolume > volumes, const PublishedDims &published_dims, std::vector< VolumeDelta > *deltas=nullptr)
 Call with the voxel lock held since it reads and then discards the dirty bricks of every volume.
auto packed (uint64_t generation) -> VoxelChangeHistory
void published ()
 The storage from the last packed() is now the one frames use.
void reset ()

Detailed Description

Finds what changed in each volume between packs and keeps it until a storage carrying it is published.

Member Function Documentation

◆ packed()

auto renderer::VoxelChangeTracker::packed ( uint64_t generation) -> VoxelChangeHistory
Returns
the history the new storage carries

The documentation for this class was generated from the following files: