use super::color_format::ColorFormat;
#[derive(Debug, Copy, Clone, PartialEq, Default)]
pub struct Options {
pub color_format: ColorFormat,
pub limits: Limits,
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct Limits {
pub vertex_count: usize,
pub face_count: usize,
pub face_vertex_count: usize,
}
impl Default for Limits {
fn default() -> Self {
Self {
vertex_count: 10000,
face_count: 1000,
face_vertex_count: 64,
}
}
}
impl Limits {
pub const MAX: Self = Self {
vertex_count: usize::MAX,
face_count: usize::MAX,
face_vertex_count: usize::MAX,
};
pub const MIN: Self = Self {
vertex_count: usize::MIN,
face_count: usize::MIN,
face_vertex_count: usize::MIN,
};
}