CD3D10_TEXTURE2D_DESC structure

Describes a 2D texture.

Syntax

struct CD3D10_TEXTURE2D_DESC {
  void CD3D10_TEXTURE2D_DESC();
  void CD3D10_TEXTURE2D_DESC( const D3D10_TEXTURE2D_DESC & o);
  void CD3D10_TEXTURE2D_DESC( DXGI_FORMAT format, UINT        width, UINT        height, UINT        arraySize, UINT        mipLevels, UINT        bindFlags, D3D10_USAGE usage, UINT        cpuaccessFlags, UINT        sampleCount, UINT        sampleQuality, UINT        miscFlags);
  void ~CD3D10_TEXTURE2D_DESC();
  void operator const D3D10_TEXTURE2D_DESC&();
};

Members

void CD3D10_TEXTURE2D_DESC()`




````cpp
void CD3D10_TEXTURE2D_DESC(  const D3D10_TEXTURE2D_DESC & o)`




````cpp
void CD3D10_TEXTURE2D_DESC(  DXGI_FORMAT format,  UINT        width,  UINT        height,  UINT        arraySize,  UINT        mipLevels,  UINT        bindFlags,  D3D10_USAGE usage,  UINT        cpuaccessFlags,  UINT        sampleCount,  UINT        sampleQuality,  UINT        miscFlags)`




````cpp
void ~CD3D10_TEXTURE2D_DESC()`




````cpp
void operator const D3D10_TEXTURE2D_DESC&()`




## Remarks
This structure is used in a call to <a href="https://docs.microsoft.com/windows/desktop/api/d3d10/nf-d3d10-id3d10device-createtexture2d">ID3D10Device::CreateTexture2D</a>. A helpful derived structure CD3D10_TEXTURE2D_DESC is declared in D3D10.h, to help create a texture description.

The device places some size restrictions (must be multiples of a minimum size) for a subsampled, <a href="https://docs.microsoft.com/windows/desktop/direct3d10/d3d10-graphics-programming-guide-resources-block-compression">block compressed</a>, or bit-format resource.


## Requirements
| &nbsp; | &nbsp; |
| ---- |:---- |
| **Header** | d3d10.h |

## See also

<a href="https://docs.microsoft.com/windows/desktop/direct3d10/d3d10-graphics-reference-resource-structures">Resource Structures</a>