CD3D11_TEXTURE2D_DESC1 structure (d3d11_3.h)
Describes a 2D texture.
Syntax
struct CD3D11_TEXTURE2D_DESC1 : D3D11_TEXTURE2D_DESC1 {
void CD3D11_TEXTURE2D_DESC1();
void CD3D11_TEXTURE2D_DESC1(
const D3D11_TEXTURE2D_DESC1 & o
);
void CD3D11_TEXTURE2D_DESC1(
DXGI_FORMAT format,
UINT width,
UINT height,
UINT arraySize,
UINT mipLevels,
UINT bindFlags,
D3D11_USAGE usage,
UINT cpuaccessFlags,
UINT sampleCount,
UINT sampleQuality,
UINT miscFlags,
D3D11_TEXTURE_LAYOUT textureLayout
);
void CD3D11_TEXTURE2D_DESC1(
const D3D11_TEXTURE2D_DESC & desc,
D3D11_TEXTURE_LAYOUT textureLayout
);
void ~CD3D11_TEXTURE2D_DESC1();
};
Inheritance
The CD3D11_TEXTURE2D_DESC1 structure implements D3D11_TEXTURE2D_DESC1.
Members
void CD3D11_TEXTURE2D_DESC1()
TBD
void CD3D11_TEXTURE2D_DESC1( const D3D11_TEXTURE2D_DESC1 & o)
void CD3D11_TEXTURE2D_DESC1( DXGI_FORMAT format, UINT width, UINT height, UINT arraySize, UINT mipLevels, UINT bindFlags, D3D11_USAGE usage, UINT cpuaccessFlags, UINT sampleCount, UINT sampleQuality, UINT miscFlags, D3D11_TEXTURE_LAYOUT textureLayout)
void CD3D11_TEXTURE2D_DESC1( const D3D11_TEXTURE2D_DESC & desc, D3D11_TEXTURE_LAYOUT textureLayout)
void ~CD3D11_TEXTURE2D_DESC1()
TBD
Remarks
This structure is used in a call to ID3D11Device3::CreateTexture2D1.
In addition to this structure, you can also use the CD3D11_TEXTURE2D_DESC1 derived structure, which is defined in D3D11_3.h and behaves like an inherited class, to help create a texture description.
The device places some size restrictions (must be multiples of a minimum size) for a subsampled, block compressed, or bit-format resource.
The texture size range is determined by the feature level at which you create the device and not the Microsoft Direct3D interface version. For example, if you use Microsoft Direct3D 10 hardware at feature level 10 (D3D_FEATURE_LEVEL_10_0) and call D3D11CreateDevice to create an ID3D11Device, you must constrain the maximum texture size to D3D10_REQ_TEXTURE2D_U_OR_V_DIMENSION (8192) when you create your 2D texture.
Requirements
Requirement | Value |
---|---|
Header | d3d11_3.h |