1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
//! //! Advanced render pass node. //! Will replace render pass node when polished. //! mod group; mod pass; pub use self::{group::*, pass::*}; /// Result of draw preparation. #[derive(Clone, Copy, Debug)] #[must_use] pub enum PrepareResult { /// Force record draw commands. DrawRecord, /// Reuse draw commands. DrawReuse, } impl PrepareResult { fn force_record(&self) -> bool { match self { PrepareResult::DrawRecord => true, PrepareResult::DrawReuse => false, } } }