/// Sampler with nearest filtering and clamped address modes in all directions.
///
/// Ideal for pixel art.
Sampler with nearest filtering and clamped address modes in all directions.
Ideal for pixel art.
Sampler with nearest filtering and clamped address modes in all directions . Ideal for pixel art .
pub fn nearest_clamp() -> Self {
        SimpleSampler {
            clamp_u: wgpu::AddressMode::ClampToEdge,
            clamp_v: wgpu::AddressMode::ClampToEdge,
            clamp_w: wgpu::AddressMode::ClampToEdge,
            mag: wgpu::FilterMode::Nearest,
            min: wgpu::FilterMode::Nearest,
        }
    }
pub fn nearest_clamp ( ) -> Self { SimpleSampler { clamp_u : wgpu :: AddressMode :: ClampToEdge , clamp_v : wgpu :: AddressMode :: ClampToEdge , clamp_w : wgpu :: AddressMode :: ClampToEdge , mag : wgpu :: FilterMode :: Nearest , min : wgpu :: FilterMode :: Nearest , } }
Sampler with nearest filtering and clamped address modes in all directions.
Sampler with nearest filtering and clamped address modes in all directions .