molgfx_render/engine/chunk_placement/structures.rs
1use super::{ChunkPlacementId, ChunkRepresentation};
2use molgfx_core::ResidencyTicket;
3use molgfx_math::Mat4;
4
5/// One transform and representation referencing a generation-bearing global ticket.
6#[derive(Clone, Copy, Debug, PartialEq)]
7pub struct StructureChunkPlacement {
8 /// Stable placement identity.
9 pub id: ChunkPlacementId,
10 /// Exact resident chunk generation to draw.
11 pub ticket: ResidencyTicket,
12 /// Dataset-local coordinates to world space.
13 pub model_to_world: Mat4,
14 /// Declarative rendering recipe.
15 pub representation: ChunkRepresentation,
16}