pub struct PainterPlan { /* private fields */ }Expand description
Renderer pass plan for one frame.
Implementations§
Source§impl PainterPlan
impl PainterPlan
Sourcepub fn new(
has_terrain_data: bool,
has_hillshade_overlay: bool,
has_heatmap: bool,
) -> Self
pub fn new( has_terrain_data: bool, has_hillshade_overlay: bool, has_heatmap: bool, ) -> Self
Build the pass plan for the current frame.
Sourcepub fn with_shadows(
has_terrain_data: bool,
has_hillshade_overlay: bool,
has_heatmap: bool,
has_shadows: bool,
) -> Self
pub fn with_shadows( has_terrain_data: bool, has_hillshade_overlay: bool, has_heatmap: bool, has_shadows: bool, ) -> Self
Build the pass plan, optionally including shadow depth passes.
Sourcepub fn iter(&self) -> impl Iterator<Item = PainterPass> + '_
pub fn iter(&self) -> impl Iterator<Item = PainterPass> + '_
Iterate passes in execution order.
Sourcepub fn contains(&self, pass: PainterPass) -> bool
pub fn contains(&self, pass: PainterPass) -> bool
Whether a specific pass is present in this frame plan.
Trait Implementations§
Source§impl Clone for PainterPlan
impl Clone for PainterPlan
Source§fn clone(&self) -> PainterPlan
fn clone(&self) -> PainterPlan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PainterPlan
impl Debug for PainterPlan
Source§impl Default for PainterPlan
impl Default for PainterPlan
Source§fn default() -> PainterPlan
fn default() -> PainterPlan
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PainterPlan
impl RefUnwindSafe for PainterPlan
impl Send for PainterPlan
impl Sync for PainterPlan
impl Unpin for PainterPlan
impl UnsafeUnpin for PainterPlan
impl UnwindSafe for PainterPlan
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