Skip to main content

Module gpu

Module gpu 

Source
Expand description

GPU resource management — shared cache and CPU→GPU projection.

This module provides:

  • [GpuCache]: the engine-wide, shared GPU mesh cache.
  • ProjectionRegistry: drives CPU→GPU mesh upload before agents run.

Both are registered into the [ServiceRegistry] during bootstrap and must not be held as local fields inside agents.

Re-exports§

pub use eviction::AssetEviction;
pub use ibl::EnvironmentMap;
pub use ibl::IblBaker;
pub use projection::ProjectionRegistry;
pub use store::AssetStore;

Modules§

eviction
GPU asset-cache eviction — budgeted reclamation of orphaned GPU resources.
ibl
Image-based lighting (IBL) bake — the data-layer “environment → GPU” projection.
projection
CPU→GPU mesh + material projection — the data-layer replacement for MeshPreparationSystem.
store
Unified, engine-wide GPU/asset resource store.