pub struct MipMap<T> {
pub do_trilinear: bool,
pub max_anisotropy: Float,
pub wrap_mode: ImageWrap,
pub resolution: Point2i,
pub pyramid: Vec<BlockedArray<T>>,
pub weight_lut: [Float; 128],
}
Fields
do_trilinear: bool
max_anisotropy: Float
wrap_mode: ImageWrap
resolution: Point2i
pyramid: Vec<BlockedArray<T>>
weight_lut: [Float; 128]
Implementations
sourceimpl<T> MipMap<T> where
T: Default + Zero + Clone + Add<T, Output = T> + AddAssign + Clampable + Copy + Div<Float, Output = T> + Mul<T, Output = T> + Mul<Float, Output = T>,
impl<T> MipMap<T> where
T: Default + Zero + Clone + Add<T, Output = T> + AddAssign + Clampable + Copy + Div<Float, Output = T> + Mul<T, Output = T> + Mul<Float, Output = T>,
pub fn new(
res: Point2i,
img: &[T],
do_trilinear: bool,
max_anisotropy: Float,
wrap_mode: ImageWrap
) -> Self
pub fn width(&self) -> i32
pub fn height(&self) -> i32
pub fn levels(&self) -> usize
pub fn texel(&self, level: usize, s: isize, t: isize) -> &T
pub fn lookup_pnt_flt(&self, st: Point2f, width: Float) -> T
pub fn lookup_pnt_vec_vec(
&self,
st: Point2f,
dst0: &mut Vector2f,
dst1: &mut Vector2f
) -> T
Auto Trait Implementations
impl<T> RefUnwindSafe for MipMap<T> where
T: RefUnwindSafe,
impl<T> Send for MipMap<T> where
T: Send,
impl<T> Sync for MipMap<T> where
T: Sync,
impl<T> Unpin for MipMap<T> where
T: Unpin,
impl<T> UnwindSafe for MipMap<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more