rendy_command/buffer/
level.rs1#[derive(Clone, Copy, Debug, Default)]
3pub struct PrimaryLevel;
4
5#[derive(Clone, Copy, Debug, Default)]
7pub struct SecondaryLevel;
8
9pub trait Level: Copy + Default + std::fmt::Debug + 'static {
13 fn raw_level(&self) -> rendy_core::hal::command::Level;
15}
16
17impl Level for PrimaryLevel {
18 fn raw_level(&self) -> rendy_core::hal::command::Level {
19 rendy_core::hal::command::Level::Primary
20 }
21}
22
23impl Level for SecondaryLevel {
24 fn raw_level(&self) -> rendy_core::hal::command::Level {
25 rendy_core::hal::command::Level::Secondary
26 }
27}