Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note
Instead of using this function, we recommend that you use the DirectXTex library, GenerateMipMaps and GenerateMipMaps3D.
Generates mipmap chain using a particular texture filter.
Syntax
HRESULT D3DX11FilterTexture(
ID3D11DeviceContext *pContext,
ID3D11Resource *pTexture,
UINT SrcLevel,
UINT MipFilter
);
Parameters
-
pContext
-
Type: ID3D11DeviceContext*
A pointer to an ID3D11DeviceContext object.
-
pTexture
-
Type: ID3D11Resource*
The texture object to be filtered. See ID3D11Resource.
-
SrcLevel
-
Type: UINT
The mipmap level whose data is used to generate the rest of the mipmap chain.
-
MipFilter
-
Type: UINT
Flags controlling how each miplevel is filtered (or D3DX11_DEFAULT for D3DX11_FILTER_LINEAR). See D3DX11_FILTER_FLAG.
Return value
Type: HRESULT
The return value is one of the values listed in Direct3D 11 Return Codes.
Requirements
| Requirement | Value |
|---|---|
| Header |
|
| Library |
|