![]() |
![]() |
![]() |
TextureFilter Enumeration |
Language: |
Defines texture filtering modes for a texture stage.
Visual Basic .NET Public Enum TextureFilter C# public enum TextureFilter Managed C++ __value public enum TextureFilter JScript .NET public enum TextureFilter
To determine whether a format supports texture filter types other than Point (which is always supported), call Manager.CheckDeviceFormat with QueryFilter.
The following C# example shows how to set a texture stage's magnification filter by setting the SamplerStateManager.MagFilter property to a member of this enumeration.
[C#]
... device.SamplerState[0].MagFilter = TextureFilter.Linear; ...The following C# code example shows how to set a texture stage's minification filter by setting the SamplerStateManager.MinFilter property to a member of this enumeration.
[C#]
... device.SamplerState[0].MinFilter = TextureFilter.Linear; ...The following C# code example shows how to set the texture filter to use between mipmap levels by setting the SamplerStateManager.MipFilter property to a member of this enumeration.
[C#]
... device.SamplerState[0].MipFilter = TextureFilter.Linear; ...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 the TextureCaps.SupportsMipVolumeMap property is set to true (the TextureCaps can be found in the Caps.TextureCaps property), 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 2-D 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).
Namespace Microsoft.DirectX.Direct3D Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll) Strong Name Microsoft.DirectX.Direct3D, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center