Platform SDK: DirectX

CONST_D3DCAPSTEXTUREFILTER

The CONST_D3DCAPSTEXTUREFILTER enumeration defines texture filtering capability flags that are combined and present in the lTextureFilterCaps of the D3DPRIMCAPS type.

Enum CONST_D3DCAPSTEXTUREFILTER
    D3DPTFILTERCAPS_LINEAR = 2
    D3DPTFILTERCAPS_LINEARMIPLINEAR = 32
    D3DPTFILTERCAPS_LINEARMIPNEAREST = 16
    D3DPTFILTERCAPS_MAGFAFLATCUBIC = 134217728
    D3DPTFILTERCAPS_MAGFANISOTROPIC = 67108864
    D3DPTFILTERCAPS_MAGFGAUSSIANCUBIC =  268435456
    D3DPTFILTERCAPS_MAGFLINEAR = 16777216
    D3DPTFILTERCAPS_MAGFPOINT = 8388608
    D3DPTFILTERCAPS_MINFANISOTROPIC = 1024
    D3DPTFILTERCAPS_MINFLINEAR = 512
    D3DPTFILTERCAPS_MINFPOINT = 256
    D3DPTFILTERCAPS_MIPFLINEAR = 131072
    D3DPTFILTERCAPS_MIPFPOINT = 65536
    D3DPTFILTERCAPS_MIPLINEAR = 8
    D3DPTFILTERCAPS_MIPNEAREST = 4
    D3DPTFILTERCAPS_NEAREST = 1
End Enum
 
General texture filtering flags
D3DPTFILTERCAPS_LINEAR
Bilinear filtering. Chooses the texel that has nearest coordinates, then performs a weighted average with the four surrounding texels to determine the final color. This applies to both zooming in and zooming out. If either zooming in or zooming out is supported, then both must be supported.
D3DPTFILTERCAPS_LINEARMIPLINEAR
Trilinear interpolation between mipmaps. Performs bilinear filtering on the two nearest mipmaps, then interpolates linearly between the two colors to determine a final color.
D3DPTFILTERCAPS_LINEARMIPNEAREST
Linear interpolation between two point sampled mipmaps. Chooses the nearest texel from the two closest mipmap levels, then performs linear interpolation between them.
D3DPTFILTERCAPS_MIPLINEAR
Nearest mipmapping, with bilinear filtering applied to the result. Chooses the texel from the appropriate mipmap that has nearest coordinates, then performs a weighted average with the four surrounding texels to determine the final color.
D3DPTFILTERCAPS_MIPNEAREST
Nearest mipmapping. Chooses the texel from the appropriate mipmap with coordinates nearest to the desired pixel value.
D3DPTFILTERCAPS_NEAREST
Point sampling. The texel with coordinates nearest to the desired pixel value is used. This applies to both zooming in and zooming out. If either zooming in or zooming out is supported, then both must be supported.
Per-stage texture filtering flags
D3DPTFILTERCAPS_MAGFAFLATCUBIC
The device supports per-stage flat-cubic filtering for magnifying textures. The flat-cubic magnification filter is represented by the D3DTFG_FLATCUBIC member of the CONST_D3DTEXTUREMAGFILTER enumeration.
D3DPTFILTERCAPS_MAGFANISOTROPIC
The device supports per-stage anisotropic filtering for magnifying textures. The anisotropic magnification filter is represented by the D3DTFG_ANISOTROPIC member of the CONST_D3DTEXTUREMAGFILTER enumeration.
D3DPTFILTERCAPS_MAGFGAUSSIANCUBIC
The device supports the per-stage Gaussian-cubic filtering for magnifying textures. The Gaussian-cubic magnification filter is represented by the D3DTFG_GAUSSIANCUBIC member of the CONST_D3DTEXTUREMAGFILTER enumeration.
D3DPTFILTERCAPS_MAGFLINEAR
The device supports per-stage bilinear-interpolation filtering for magnifying textures. The bilinear-interpolation magnification filter is represented by the D3DTFG_LINEAR member of the CONST_D3DTEXTUREMAGFILTER enumeration.
D3DPTFILTERCAPS_MAGFPOINT
The device supports per-stage point-sampled filtering for magnifying textures. The point-sample magnification filter is represented by the D3DTFG_POINT member of the CONST_D3DTEXTUREMAGFILTER enumeration.
D3DPTFILTERCAPS_MINFANISOTROPIC
The device supports per-stage anisotropic filtering for minifying textures. The anisotropic minification filter is represented by the D3DTFN_ANISOTROPIC member of the CONST_D3DTEXTUREMINFILTER enumeration.
D3DPTFILTERCAPS_MINFLINEAR
The device supports per-stage bilinear-interpolation filtering for minifying textures. The bilinear minification filter is represented by the D3DTFN_LINEAR member of the CONST_D3DTEXTUREMINFILTER enumeration.
D3DPTFILTERCAPS_MINFPOINT
The device supports per-stage point-sampled filtering for minifying textures. The point-sample minification filter is represented by the D3DTFN_POINT member of the CONST_D3DTEXTUREMINFILTER enumeration.
D3DPTFILTERCAPS_MIPFLINEAR
The device supports per-stage trilinear-interpolation filtering for mipmaps. The trilinear-interpolation mipmapping filter is represented by the D3DTFP_LINEAR member of the CONST_D3DTEXTUREMIPFILTER enumeration.
D3DPTFILTERCAPS_MIPFPOINT
The device supports per-stage point-sampled filtering for mipmaps. The point-sample mipmapping filter is represented by the D3DTFP_POINT member of the CONST_D3DTEXTUREMIPFILTER enumeration.