Advanced
options for the style
Optional
addressOptional
addressOptional
addressSpecifies the {{GPUAddressMode|address modes}} for the texture width, height, and depth coordinates, respectively.
Optional
compareWhen provided the sampler will be a comparison sampler with the specified COMPARE_FUNCTION. Note: Comparison samplers may use filtering, but the sampling results will be implementation-dependent and may differ from the normal filtering rules.
Readonly
destroyedHas the style been destroyed?
Optional
lodSpecifies the minimum and maximum levels of detail, respectively, used internally when sampling a texture.
Optional
lodOptional
magSpecifies the sampling behavior when the sample footprint is smaller than or equal to one texel.
Optional
minSpecifies the sampling behavior when the sample footprint is larger than one texel.
Optional
mipmapSpecifies behavior for sampling between mipmap levels.
Static
Readonly
defaultdefault options for the style
Specifies the maximum anisotropy value clamp used by the sampler.
setting this will set magFilter,minFilter and mipmapFilter all at once!
A texture style describes how a texture should be sampled by a shader.