/// Creates a new [Sampler] from an existing sampler.
Creates a new [Sampler] from an existing sampler.
Creates a new [ Sampler ] from an existing sampler .
pub fn new(sampler: Arc<wgpu::Sampler>) -> Self {
        Sampler {
            sampler,
            id: NEXT_SAMPLER_ID.fetch_add(1, SeqCst),
        }
    }
pub fn new ( sampler : Arc < wgpu :: Sampler > ) -> Self { Sampler { sampler , id : NEXT_SAMPLER_ID . fetch_add ( 1 , SeqCst ) , } }
Creates a new [Sampler] from an existing sampler.
Creates a new [ Sampler ] from an existing sampler .
sampler
Arc<wgpu::Sampler>