iced/wgpu/src/image/atlas/layer.rs
2022-07-09 17:07:38 +02:00

14 lines
211 B
Rust

use crate::image::atlas::Allocator;
#[derive(Debug)]
pub enum Layer {
Empty,
Busy(Allocator),
Full,
}
impl Layer {
pub fn is_empty(&self) -> bool {
matches!(self, Layer::Empty)
}
}