Compartir a través de


TextureFilter Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Defines filtering types during texture sampling.

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)

Syntax

'Declaration
Public Enumeration TextureFilter
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).

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.