iced-yoda/wgpu/src/image/atlas/layer.rs
2020-02-28 14:38:42 +01:00

17 lines
263 B
Rust

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