pub struct Sampler { /* private fields */ }
Expand description
Handle to a sampler.
A Sampler
object defines how a pipeline will sample from a TextureView
. Samplers define
image filters (including anisotropy) and address (wrapping) modes, among other things. See
the documentation for SamplerDescriptor
for more information.
It can be created with Device::create_sampler
.
Corresponds to WebGPU GPUSampler
.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Sampler
impl Send for Sampler
impl Sync for Sampler
impl Unpin for Sampler
impl !UnwindSafe for Sampler
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more