createSampler method

GPUSampler createSampler([
  1. GPUSamplerDescriptor descriptor
])

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

Implementation

external GPUSampler createSampler([GPUSamplerDescriptor descriptor]);