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
.
Formats the value using the given formatter.
Read more
Executes the destructor for this type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.