use super::*;
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
pub struct Texture3dOptions {
mipmaps: TextureMipmaps3d,
preserve_alpha: bool,
}
impl Texture3dOptions {
pub const fn new() -> Self {
Self {
mipmaps: TextureMipmaps3d::None,
preserve_alpha: false,
}
}
pub const fn with_mipmaps(mut self, mipmaps: TextureMipmaps3d) -> Self {
self.mipmaps = mipmaps;
self
}
pub const fn with_alpha_preservation(mut self, preserve: bool) -> Self {
self.preserve_alpha = preserve;
self
}
pub const fn mipmaps(self) -> TextureMipmaps3d {
self.mipmaps
}
pub const fn preserves_alpha(self) -> bool {
self.preserve_alpha
}
}