pub struct SceneDrawPacket {
pub index_start: u32,
pub index_count: u32,
pub material_id: Option<MaterialId>,
}Expand description
Per-node draw range produced by compile_scene_packets.
index_start and index_count are byte-aligned offsets into the merged
index buffer returned alongside this packet.
Fields§
§index_start: u32First index in the merged index buffer for this node.
index_count: u32Number of indices (must be a multiple of 3).
material_id: Option<MaterialId>The material assigned to this node; None means use the renderer
default.
Trait Implementations§
Source§impl Clone for SceneDrawPacket
impl Clone for SceneDrawPacket
Source§impl Debug for SceneDrawPacket
impl Debug for SceneDrawPacket
Source§impl PartialEq for SceneDrawPacket
impl PartialEq for SceneDrawPacket
impl StructuralPartialEq for SceneDrawPacket
Auto Trait Implementations§
impl Forget for SceneDrawPacket
impl Freeze for SceneDrawPacket
impl Move for SceneDrawPacket
impl RefUnwindSafe for SceneDrawPacket
impl Send for SceneDrawPacket
impl Sync for SceneDrawPacket
impl Unpin for SceneDrawPacket
impl UnsafeUnpin for SceneDrawPacket
impl UnwindSafe for SceneDrawPacket
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