rendy_command/buffer/
reset.rsuse super::state::*;
#[derive(Clone, Copy, Debug, Default)]
pub struct IndividualReset;
#[derive(Clone, Copy, Debug, Default)]
pub struct NoIndividualReset;
pub trait Reset: Copy + Default + std::fmt::Debug + 'static {
fn flags(&self) -> rendy_core::hal::pool::CommandPoolCreateFlags;
}
impl Reset for IndividualReset {
fn flags(&self) -> rendy_core::hal::pool::CommandPoolCreateFlags {
rendy_core::hal::pool::CommandPoolCreateFlags::RESET_INDIVIDUAL
}
}
impl Reset for NoIndividualReset {
fn flags(&self) -> rendy_core::hal::pool::CommandPoolCreateFlags {
rendy_core::hal::pool::CommandPoolCreateFlags::empty()
}
}
pub trait Resettable {}
impl Resettable for InitialState {}
impl<U, P> Resettable for RecordingState<U, P> {}
impl<U, P> Resettable for ExecutableState<U, P> {}
impl Resettable for InvalidState {}