Export (0) Print
Expand All
Expand Minimize

TextureFilter Enumeration

Defines filtering types during texture sampling.

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

public enum TextureFilter

 Member nameDescription
LinearUse linear filtering.
PointUse point filtering.
AnisotropicUse anisotropic filtering.
LinearMipPointUse linear filtering to shrink or expand, and point filtering between mipmap levels (mip).
PointMipLinearUse point filtering to shrink (minify) or expand (magnify), and linear filtering between mipmap levels.
MinLinearMagPointMipLinearUse linear filtering to shrink, point filtering to expand, and linear filtering between mipmap levels.
MinLinearMagPointMipPointUse linear filtering to shrink, point filtering to expand, and point filtering between mipmap levels.
MinPointMagLinearMipLinearUse point filtering to shrink, linear filtering to expand, and linear filtering between mipmap levels.
MinPointMagLinearMipPointUse point filtering to shrink, linear filtering to expand, and point filtering between mipmap levels.

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).

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7

Community Additions

ADD
Show:
© 2014 Microsoft