Skip to main content

Crate spatialrust_lod

Crate spatialrust_lod 

Source
Expand description

Bounded camera-driven level-of-detail planning and explicit residency.

Planning is independent of file formats and GPU backends. Optional adapters connect plans to COPC queries and record-memory leases. Upload completion is caller-reported; this crate performs no hidden host/device transfer.

Structs§

GpuCacheReceipt
Exact result of one GPU cache admission.
HostChunkLease
Explicit host-memory lease for one decoded LOD chunk.
LodBounds
Finite axis-aligned node bounds.
LodBudgets
Hard limits shared by selection, decode/upload admission, and GPU residency.
LodGpuCache
Backend-neutral GPU residency ledger with deterministic LRU eviction.
LodIndex
Validated deterministic LOD hierarchy.
LodNode
One node from a persisted spatial/COPC hierarchy.
LodPlan
One deterministic camera-driven LOD decision.
LodPlanner
Stateful planner retaining only hysteresis/refinement state.
LodPlannerOptions
Screen-space refinement and hysteresis settings.
LodUploadReceipt
Exact receipt for a host lease followed by caller-performed GPU upload.
LodUploadSession
Bounded lease/upload admission state.
NodeId
Stable LOD/index node identity.
ResidentNode
One device-resident node tracked without owning backend-specific handles.

Enums§

LodError
LOD validation, admission, or adapter error.

Functions§

copc_query_for_nodes
Converts selected index node bounds into one bounded COPC resolution query.

Type Aliases§

LodResult
LOD operation result.