D3DX10FilterTexture function

Generates mipmap chain using a particular texture filter.

Syntax

HRESULT D3DX10FilterTexture(
   ID3D10Resource *pTexture,
   UINT           SrcLevel,
   UINT           MipFilter
);

Parameters

pTexture

Type: ID3D10Resource*

The texture object to be filtered. See ID3D10Resource.

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 D3DX10_DEFAULT for D3DX10_FILTER_BOX). See D3DX10_FILTER_FLAG.

Return value

Type: HRESULT

The return value is one of the values listed in Direct3D 10 Return Codes.

Requirements

Requirement Value
Header
D3DX10Tex.h

See also

Texture Functions in D3DX 10