Struct Sampler

A handle to a sampler.

struct 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.

Fields

NameTypeDescription
descriptor const(__C.WGPUSamplerDescriptor)Describes this Sampler.

Methods

NameDescription
binding (location) Creates a sampler binding.

See Also

wgpu::Sampler