pub fn create(self, cx: &Context) -> Sampler {
        let sampler = cx.device.create_sampler(&wgpu::SamplerDescriptor {
            label: None,
            address_mode_u: self.clamp_u,
            address_mode_v: self.clamp_v,
            address_mode_w: self.clamp_w,
            mag_filter: self.mag,
            min_filter: self.min,
            mipmap_filter: wgpu::FilterMode::Linear,
            lod_min_clamp: 0.,
            lod_max_clamp: 1.,
            compare: None,
            anisotropy_clamp: None,
            border_color: None,
        });
        Sampler::new(Arc::new(sampler))
    }
/// Creates a new [Sampler] from the stored sampler configuration.
Creates a new [Sampler] from the stored sampler configuration.
Creates a new [ Sampler ] from the stored sampler configuration .
pub fn create(self, cx: &Context) -> Sampler {
        let sampler = cx.device.create_sampler(&wgpu::SamplerDescriptor {
            label: None,
            address_mode_u: self.clamp_u,
            address_mode_v: self.clamp_v,
            address_mode_w: self.clamp_w,
            mag_filter: self.mag,
            min_filter: self.min,
            mipmap_filter: wgpu::FilterMode::Linear,
            lod_min_clamp: 0.,
            lod_max_clamp: 1.,
            compare: None,
            anisotropy_clamp: None,
            border_color: None,
        });
        Sampler::new(Arc::new(sampler))
    }
pub fn create ( self , cx : & Context ) -> Sampler { let sampler = cx . device . create_sampler ( & wgpu :: SamplerDescriptor { label : None , address_mode_u : self . clamp_u , address_mode_v : self . clamp_v , address_mode_w : self . clamp_w , mag_filter : self . mag , min_filter : self . min , mipmap_filter : wgpu :: FilterMode :: Linear , lod_min_clamp : 0. , lod_max_clamp : 1. , compare : None , anisotropy_clamp : None , border_color : None , } ) ; Sampler :: new ( Arc :: new ( sampler ) ) }
Creates a new [Sampler] from the stored sampler configuration.
Creates a new [ Sampler ] from the stored sampler configuration .
self
cx
&Context
self
cx
&Context