createSampler

fun createSampler(descriptor: GPUSamplerDescriptor = definedExternally): GPUSampler(source)

The createSampler() method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.

MDN Reference