wgpu-font-renderer 0.1.0

GPU-Centered Font Rendering crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::allocator::Allocator;

#[derive(Debug)]
pub enum Layer {
    Empty,
    Busy(Allocator),
}

impl Layer {
    pub fn is_empty(&self) -> bool {
        matches!(self, Layer::Empty)
    }
}