pub struct DrawGeometryUpdate {
pub draw_idx: usize,
pub vertices: Vec<Vertex>,
pub indices: Vec<u16>,
pub lod_alternates: Vec<(f32, Vec<u16>)>,
}Expand description
One draw slot’s fresh geometry, supplied to
RenderBackend::rebuild_static_geometry when an asset hot-reload
changed its vertex / index count and the slot can no longer hold the new
data in place. The backend rebuilds the entire shared vertex / index
buffer; draws not named here keep their current geometry, copied byte-for-
byte from the live buffers. indices are mesh-relative (0-based); the
backend rebases them onto whatever new vertex region the draw lands in.
Fields§
§draw_idx: usizeThe draw slot whose geometry is replaced.
vertices: Vec<Vertex>Replacement vertices.
indices: Vec<u16>Replacement indices, mesh-relative.
lod_alternates: Vec<(f32, Vec<u16>)>One slice per additional LOD, ordered mip 0 → mip N-1. Each is
(switch_distance, mesh-relative indices). Empty for meshes
declared lod_levels <= 1.
Auto Trait Implementations§
impl Freeze for DrawGeometryUpdate
impl RefUnwindSafe for DrawGeometryUpdate
impl Send for DrawGeometryUpdate
impl Sync for DrawGeometryUpdate
impl Unpin for DrawGeometryUpdate
impl UnsafeUnpin for DrawGeometryUpdate
impl UnwindSafe for DrawGeometryUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more