D3DX11_TEXTURE_LOAD_INFO structure

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.

Describes parameters used to load a texture from another texture.

Syntax


typedef struct _D3DX11_TEXTURE_LOAD_INFO {
  D3D11_BOX *pSrcBox;
  D3D11_BOX *pDstBox;
  UINT      SrcFirstMip;
  UINT      DstFirstMip;
  UINT      NumMips;
  UINT      SrcFirstElement;
  UINT      DstFirstElement;
  UINT      NumElements;
  UINT      Filter;
  UINT      MipFilter;
} D3DX11_TEXTURE_LOAD_INFO;

Members

pSrcBox

Type: D3D11_BOX*

Source texture box (see D3D11_BOX).

pDstBox

Type: D3D11_BOX*

Destination texture box (see D3D11_BOX).

SrcFirstMip

Type: UINT

Source texture mipmap level, see D3D11CalcSubresource for more detail.

DstFirstMip

Type: UINT

Destination texture mipmap level, see D3D11CalcSubresource for more detail.

NumMips

Type: UINT

Number of mipmap levels in the source texture.

SrcFirstElement

Type: UINT

First element of the source texture.

DstFirstElement

Type: UINT

First element of the destination texture.

NumElements

Type: UINT

Number of elements to load.

Filter

Type: UINT

Filtering options during resampling (see D3DX11_FILTER_FLAG).

MipFilter

Type: UINT

Filtering options when generating mip levels (see D3DX11_FILTER_FLAG).

Remarks

This structure is used in a call to D3DX11LoadTextureFromTexture.

The default values are:



    pSrcBox = NULL;
    pDstBox = NULL;
    SrcFirstMip = 0;
    DstFirstMip = 0;
    NumMips = D3DX11_DEFAULT;
    SrcFirstElement = 0;
    DstFirstElement = 0;
    NumElements = D3DX11_DEFAULT;
    Filter = D3DX11_DEFAULT;
    MipFilter = D3DX11_DEFAULT;


Requirements

Header

D3DX11tex.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft