euv-core 0.52.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;

thread_local! {
    /// Per-thread reusable `World3dGpuPassScratch` eliminating per-frame `Vec<Vec<_>>` heap allocations when `&World3D` builds GPU passes.
    pub(crate) static WORLD3D_GPU_PASS_SCRATCH: RefCell<World3dGpuPassScratch> =
        const { RefCell::new(World3dGpuPassScratch {
            dynamic_pose_epochs: Vec::new(),
            dynamic_pose_transforms: Vec::new(),
            current_epoch: 0,
            mesh_counts: Vec::new(),
            mesh_cursors: Vec::new(),
            visible_scratch: Vec::new(),
        }) };
}