Export (0) Print
Expand All
Expand Minimize

TextureFilter Enumeration

Defines how a texture will be filtered as it is minified for each mipmap level.

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

public enum TextureFilter

 Member nameDescription
AnisotropicAnisotropic texture filtering used as a texture magnification or minification filter. This type of filtering compensates for distortion caused by the difference in angle between the texture polygon and the plane of the screen.
GaussianQuadA 4-sample Gaussian filter used as a texture magnification or minification filter.
LinearBilinear interpolation filtering used as a texture magnification or minification filter. A weighted average of a 2×2 area of texels surrounding the desired pixel is used. The texture filter used between mipmap levels is trilinear mipmap interpolation, in which the rasterizer performs linear interpolation on pixel color, using the texels of the two nearest mipmap textures.
NoneMipmapping disabled. The rasterizer uses the magnification filter instead.
PointPoint filtering used as a texture magnification or minification filter. The texel with coordinates nearest to the desired pixel value is used. The texture filter used between mipmap levels is based on the nearest point; that is, the rasterizer uses the color from the texel of the nearest mipmap texture.
PyramidalQuadA 4-sample tent filter used as a texture magnification or minification filter.

To determine whether a format supports texture filter types other than Point (which is always supported), call CheckDeviceFormat with ResourceUsage.QueryFilter.

Not all valid filtering modes for a device apply to volume maps. In general, Point and Linear magnification filters are supported for volume maps. If SupportsMipVolumeMap is true (the texture capabilities can be found in TextureCapabilities), the Point mipmap filter and the Point and Linear minification filters are supported for volume maps. The device might or might not support the Linear mipmap filter 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 XP SP2, Windows Vista

Show:
© 2014 Microsoft