D3DX11_IMAGE_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.

Optionally provide information to texture loader APIs to control how textures get loaded. A value of D3DX11_DEFAULT for any of these parameters will cause D3DX to automatically use the value from the source file.

Syntax

typedef struct D3DX11_IMAGE_INFO {
  UINT                     Width;
  UINT                     Height;
  UINT                     Depth;
  UINT                     ArraySize;
  UINT                     MipLevels;
  UINT                     MiscFlags;
  DXGI_FORMAT              Format;
  D3D11_RESOURCE_DIMENSION ResourceDimension;
  D3DX11_IMAGE_FILE_FORMAT ImageFileFormat;
} D3DX11_IMAGE_INFO, *LPD3DX11_IMAGE_INFO;

Members

Width

Type: UINT

The target width of the texture. If the actual width of the texture is larger or smaller than this value then the texture will be scaled up or down to fit this target width.

Height

Type: UINT

The target height of the texture. If the actual height of the texture is larger or smaller than this value then the texture will be scaled up or down to fit this target height.

Depth

Type: UINT

The depth of the texture. This only applies to volume textures.

ArraySize

Type: UINT

The number of elements in the array.

MipLevels

Type: UINT

The maximum number of mipmap levels in the texture. See the remarks in D3D11_TEX1D_SRV. Using 0 or D3DX11_DEFAULT will cause a full mipmap chain to be created.

MiscFlags

Type: UINT

Miscellaneous resource properties specified with a D3D11_RESOURCE_MISC_FLAG flag.

Format

Type: DXGI_FORMAT

A DXGI_FORMAT enumeration specifying the format the texture will be in after it is loaded.

ResourceDimension

Type: D3D11_RESOURCE_DIMENSION

A D3D11_RESOURCE_DIMENSION value, which identifies the type of resource.

ImageFileFormat

Type: D3DX11_IMAGE_FILE_FORMAT

A D3DX11_IMAGE_FILE_FORMAT value, which identifies the image format.

Remarks

This structure is used by methods such as: D3DX11GetImageInfoFromFile, D3DX11GetImageInfoFromMemory, or D3DX11GetImageInfoFromResource.

Requirements

Requirement Value
Header
D3DX11tex.h

See also

D3DX Structures