ChunkDownsampler

Trait ChunkDownsampler 

Source
pub trait ChunkDownsampler<N, T, Src, Dst> {
    // Required method
    fn downsample(
        &self,
        src_chunk: &Src,
        dst_chunk: &mut Dst,
        dst_min: Local<N>,
        lod_delta: u8,
    );
}

Required Methods§

Source

fn downsample( &self, src_chunk: &Src, dst_chunk: &mut Dst, dst_min: Local<N>, lod_delta: u8, )

Samples src_chunk in order to write out just a portion of dst_chunk, starting at dst_min.

Implementors§

Source§

impl<N, Src, Dst, T> ChunkDownsampler<N, T, Src, Dst> for PointDownsampler
where N: ArrayIndexer<N>, PointN<N>: IntegerPoint<N>, Src: Get<Stride, Item = T> + IndexedArray<N>, Dst: for<'r> GetMut<'r, Stride, Item = &'r mut T>,

Source§

impl<N, Src, Dst, T> ChunkDownsampler<N, T, Src, Dst> for SdfMeanDownsampler
where N: ArrayIndexer<N>, PointN<N>: IntegerPoint<N>, ArrayForEach<N>: Clone, T: From<f32>, f32: From<T>, Src: Get<Stride, Item = T> + IndexedArray<N>, Dst: for<'r> GetMut<'r, Stride, Item = &'r mut T> + IndexedArray<N>,