OptionaltypeIndicates the required type of a sampler bound to this bindings.
OptionaladdressOptionaladdressOptionaladdressSpecifies the {{GPUAddressMode|address modes}} for the texture width, height, and depth coordinates, respectively.
OptionalmagSpecifies the sampling behavior when the sampled area is smaller than or equal to one texel.
OptionalminSpecifies the sampling behavior when the sampled area is larger than one texel.
OptionalmipmapSpecifies behavior for sampling between mipmap levels.
OptionallodOptionallodSpecifies the minimum and maximum levels of detail, respectively, used internally when sampling a texture.
OptionallabelThe label of the GPUSampler, useful for debugging purpose.
OptionalcompareWhen provided the sampler will be a comparison sampler. See GPUCompareFunction (WebGPU API reference).
OptionalmaxSpecifies the maximum anisotropy value clamp used by the sampler. See maxAnisotropy (WebGPU API reference).
Options used to create a Sampler.