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

Records stay in place so a removed volume leaves a dead record and a new one is appended. More...

#include <voxel_scene_patcher.hpp>

Classes

struct  Patched

Public Member Functions

void adopt (const voxel::gpu::PackedScene &scene, uint32_t pool_slots, std::vector< uint64_t > node_rids)
 A full pack is what the GPU will hold so later patches build on it.
auto tryPatch (const voxel::BrickPool &pool, std::span< const voxel::gpu::SceneVolume > volumes, std::span< const uint64_t > node_rids, std::span< const VolumeDelta > deltas) -> std::optional< Patched >
void reset ()
auto valid () const noexcept -> bool
auto scene () const noexcept -> const voxel::gpu::PackedScene &
auto poolSlots () const noexcept -> uint32_t

Detailed Description

Records stay in place so a removed volume leaves a dead record and a new one is appended.

Member Function Documentation

◆ tryPatch()

auto renderer::VoxelScenePatcher::tryPatch ( const voxel::BrickPool & pool,
std::span< const voxel::gpu::SceneVolume > volumes,
std::span< const uint64_t > node_rids,
std::span< const VolumeDelta > deltas ) -> std::optional< Patched >
nodiscard
Returns
nullopt when only a full pack is worth it

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