Skip to main content

concinnity_core/components/
render_handle.rs

1// src/components/render_handle.rs
2
3use crate::memory::InlineVec;
4
5/// The backend draw-object slot(s) an entity occupies.
6///
7/// Runtime-only. The renderer writes one of these per renderable entity so
8/// per-frame model-matrix and visibility updates address the GPU slots by
9/// entity rather than by storage row. A mesh-backed entity has one slot; a
10/// model-backed entity has one per sub-mesh.
11#[derive(Debug, Clone, Default)]
12pub struct RenderHandle {
13    /// Backend draw-object indices owned by this entity.
14    ///
15    /// Held inline for the single-slot case, which is most of them.
16    pub draws: InlineVec<u32>,
17}