GPUSampler

class wgpu.GPUSampler

Bases: GPUObjectBase

Defines how a texture (view) must be sampled by the shader.

It defines the subsampling, sampling between mip levels, and sampling out of the image boundaries.

Create a sampler using GPUDevice.create_sampler().