Interface GPUSamplerDescriptor
addressModeU?: GPUAddressMode;
addressModeV?: GPUAddressMode;
addressModeW?: GPUAddressMode;
compare?: GPUCompareFunction;
label?: string;
lodMaxClamp?: number;
lodMinClamp?: number;
magFilter?: GPUFilterMode;
maxAnisotropy?: number;
minFilter?: GPUFilterMode;
mipmapFilter?: GPUMipmapFilterMode;
}
Hierarchy
- GPUObjectDescriptorBase
- GPUSamplerDescriptor (view full)
Properties
Optional
addressModeU
Optional
addressModeV
Optional
addressModeW
Optional
compare
When provided the sampler will be a comparison sampler with the specified GPUCompareFunction. Note: Comparison samplers may use filtering, but the sampling results will be implementation-dependent and may differ from the normal filtering rules.
Optional
label
The initial value of GPUObjectBase.label.
Optional
lodMaxClamp
Specifies the minimum and maximum levels of detail, respectively, used internally when sampling a texture.
Optional
lodMinClamp
Optional
magFilter
Specifies the sampling behavior when the sampled area is smaller than or equal to one texel.
Optional
maxAnisotropy
Specifies the maximum anisotropy value clamp used by the sampler. Anisotropic filtering is enabled when GPUSamplerDescriptor#maxAnisotropy is > 1 and the implementation supports it. Anisotropic filtering improves the image quality of textures sampled at oblique viewing angles. Higher GPUSamplerDescriptor#maxAnisotropy values indicate the maximum ratio of anisotropy supported when filtering.
Optional
minFilter
Specifies the sampling behavior when the sampled area is larger than one texel.
Optional
mipmapFilter
Specifies behavior for sampling between mipmap levels.
Specifies the {{GPUAddressMode|address modes}} for the texture width, height, and depth coordinates, respectively.