createSampler

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

MDN Reference