iced-yoda/wgpu/src/image/atlas/layer.rs

15 lines
211 B
Rust
Raw Normal View History

use crate::image::atlas::Allocator;
#[derive(Debug)]
pub enum Layer {
Empty,
Busy(Allocator),
Full,
}
impl Layer {
pub fn is_empty(&self) -> bool {
2022-07-04 01:17:29 +02:00
matches!(self, Layer::Empty)
}
}