rendy_command/buffer/
level.rs#[derive(Clone, Copy, Debug, Default)]
pub struct PrimaryLevel;
#[derive(Clone, Copy, Debug, Default)]
pub struct SecondaryLevel;
pub trait Level: Copy + Default + std::fmt::Debug + 'static {
fn raw_level(&self) -> rendy_core::hal::command::Level;
}
impl Level for PrimaryLevel {
fn raw_level(&self) -> rendy_core::hal::command::Level {
rendy_core::hal::command::Level::Primary
}
}
impl Level for SecondaryLevel {
fn raw_level(&self) -> rendy_core::hal::command::Level {
rendy_core::hal::command::Level::Secondary
}
}