summaryrefslogtreecommitdiffstats
path: root/wgpu/src/image/atlas/layer.rs
blob: b1084ed9e6b524085470b2c8e1a05f86672a9573 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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,
        }
    }
}