Class: TextureStyle

TextureStyle

A texture style describes how a texture should be sampled by a shader.

Extends

  • EventEmitter

Implements

Members

_maxAnisotropy number

Specifies the maximum anisotropy value clamp used by the sampler. Note: Most implementations support GPUSamplerDescriptor#maxAnisotropy values in range between 1 and 16, inclusive. The used value of GPUSamplerDescriptor#maxAnisotropy will be clamped to the maximum value that the platform supports.

Default Value:
  • 1

addressModeW WRAP_MODE

Specifies the {{GPUAddressMode|address modes}} for the texture width, height, and depth coordinates, respectively.

compare COMPARE_FUNCTION

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.

lodMaxClamp number

Specifies the minimum and maximum levels of detail, respectively, used internally when sampling a texture.

magFilter SCALE_MODE

Specifies the sampling behavior when the sample footprint is smaller than or equal to one texel.

minFilter SCALE_MODE

Specifies the sampling behavior when the sample footprint is larger than one texel.

mipmapFilter SCALE_MODE

Specifies behavior for sampling between mipmap levels.

Methods

destroy ()

Destroys the style