D3DDDIARG_GENERATEMIPSUBLEVELS structure (d3dumddi.h)
The D3DDDIARG_GENERATEMIPSUBLEVELS structure describes how to generate the sublevels of a MIP-map texture.
Syntax
typedef struct _D3DDDIARG_GENERATEMIPSUBLEVELS {
[in] HANDLE hResource;
[in] D3DDDITEXTUREFILTERTYPE Filter;
} D3DDDIARG_GENERATEMIPSUBLEVELS;
Members
[in] hResource
A handle to the MIP-map texture surface.
[in] Filter
A D3DDDITEXTUREFILTERTYPE-typed value that indicates the texture magnification or minification filter type that is used in generating the sublevels of the MIP-map texture. This member can be one of the following values.
Value | Meaning |
---|---|
D3DDDITEXF_NONE | MIP-map filtering is disabled. |
D3DDDITEXF_POINT | Point filtering. The texel with coordinates that are nearest to the required pixel value is used. The texture filter to be used between MIP-map levels is nearest-point MIP-map filtering. |
D3DDDITEXF_LINEAR | Bilinear-interpolation filtering. A weighted average of a 2x2 area of texels that surround the required pixel is used. The texture filter to use between MIP-map levels is trilinear MIP-map interpolation. |
D3DDDITEXF_ANISOTROPIC | Anisotropic texture filtering. This filtering compensates for distortion that is caused by the difference in angle between the texture polygon and the plane of the screen. |
D3DDDITEXF_PYRAMIDALQUAD | Four-sample tent filtering. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows Vista and later versions of the Windows operating systems. |
Header | d3dumddi.h (include D3dumddi.h) |