use thiserror::Error;
#[derive(Clone, Copy, Debug, Eq, Error, PartialEq)]
#[non_exhaustive]
pub enum FontAtlasModeError {
#[error("the font atlas is owned by a managed renderer")]
ManagedRendererActive,
#[error("the font atlas is waiting for the previous renderer texture release to be committed")]
RendererReleasePending,
}
#[derive(Clone, Copy, Debug, Eq, Error, PartialEq)]
#[non_exhaustive]
pub enum FontAtlasLoaderError {
#[error(
"the font atlas already contains {source_count} font source(s); set the loader before adding fonts"
)]
SourcesAlreadyAdded { source_count: usize },
}