TextureFilter Enumeration

Defines filtering types during texture sampling.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

Syntax

public enum TextureFilter

Members

  Member name Description
Linear Use linear filtering.
Point Use point filtering.
Anisotropic Use anisotropic filtering.
LinearMipPoint Use linear filtering to shrink or expand, and point filtering between mipmap levels (mip).
PointMipLinear Use point filtering to shrink (minify) or expand (magnify), and linear filtering between mipmap levels.
MinLinearMagPointMipLinear Use linear filtering to shrink, point filtering to expand, and linear filtering between mipmap levels.
MinLinearMagPointMipPoint Use linear filtering to shrink, point filtering to expand, and point filtering between mipmap levels.
MinPointMagLinearMipLinear Use point filtering to shrink, linear filtering to expand, and linear filtering between mipmap levels.
MinPointMagLinearMipPoint Use point filtering to shrink, linear filtering to expand, and point filtering between mipmap levels.

Remarks

A texture coordinate determines where to sample a texture. When a texel does not map exactly to one pixel, filtering is necessary to magnify (enlarge) or minify (shrink) the texture.

Not all valid filtering modes for a device apply to volume maps. In general, Point and Linear magnification filters are supported for volume maps. Devices that support anisotropic filtering for 2D maps do not necessarily support it for volume maps. However, applications that enable anisotropic filtering, even if they do not support it, receive the best available filtering (probably linear).

See Also

Reference

SamplerState.Filter Property
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP