pub struct DisplayList { /* private fields */ }Expand description
Reusable backend-agnostic command buffer emitted once per frame for Software, Hardware, or Hybrid execution.
Implementations§
Source§impl DisplayList
Command emission helpers for DisplayList.
impl DisplayList
Command emission helpers for DisplayList.
Sourcepub fn reset(&mut self, viewport: Size, scale_factor: f32)
pub fn reset(&mut self, viewport: Size, scale_factor: f32)
Clears all commands while preserving allocated backing capacity.
§Arguments
&Self- Mutable display list.Size- Target logical viewport size.f32- Active DPI scale factor.
Sourcepub fn push(&mut self, command: DrawCommand)
pub fn push(&mut self, command: DrawCommand)
Appends a single DrawCommand to the list.
§Arguments
&Self- Mutable display list.DrawCommand- Command to push.
Sourcepub fn base_layer_hash(&self) -> u64
pub fn base_layer_hash(&self) -> u64
Source§impl DisplayList
impl DisplayList
pub fn get_commands(&self) -> &Vec<DrawCommand>
pub fn get_mut_commands(&mut self) -> &mut Vec<DrawCommand>
pub fn set_commands(&mut self, val: Vec<DrawCommand>) -> &mut Self
pub fn get_viewport(&self) -> Size
pub fn get_mut_viewport(&mut self) -> &mut Size
pub fn set_viewport(&mut self, val: Size) -> &mut Self
pub fn get_scale_factor(&self) -> f32
pub fn get_mut_scale_factor(&mut self) -> &mut f32
pub fn set_scale_factor(&mut self, val: f32) -> &mut Self
pub fn get_portal_split_index(&self) -> usize
pub fn get_mut_portal_split_index(&mut self) -> &mut usize
pub fn set_portal_split_index(&mut self, val: usize) -> &mut Self
Trait Implementations§
Source§impl Clone for DisplayList
impl Clone for DisplayList
Source§impl Debug for DisplayList
impl Debug for DisplayList
Source§impl Default for DisplayList
impl Default for DisplayList
Source§impl PartialEq for DisplayList
impl PartialEq for DisplayList
impl StructuralPartialEq for DisplayList
Auto Trait Implementations§
impl Forget for DisplayList
impl Freeze for DisplayList
impl Move for DisplayList
impl RefUnwindSafe for DisplayList
impl Send for DisplayList
impl Sync for DisplayList
impl Unpin for DisplayList
impl UnsafeUnpin for DisplayList
impl UnwindSafe for DisplayList
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