CD3D11_TEXTURE2D_DESC-Struktur (d3d11.h)
Stellt eine 2D-Textur dar und bietet praktische Methoden zum Erstellen von 2D-Texturen.
Syntax
struct CD3D11_TEXTURE2D_DESC : D3D11_TEXTURE2D_DESC {
void CD3D11_TEXTURE2D_DESC();
void CD3D11_TEXTURE2D_DESC(
const D3D11_TEXTURE2D_DESC & o
);
void CD3D11_TEXTURE2D_DESC(
DXGI_FORMAT format,
UINT width,
UINT height,
UINT arraySize,
UINT mipLevels,
UINT bindFlags,
D3D11_USAGE usage,
UINT cpuaccessFlags,
UINT sampleCount,
UINT sampleQuality,
UINT miscFlags
);
void ~CD3D11_TEXTURE2D_DESC();
};
Vererbung
Die CD3D11_TEXTURE2D_DESC-Struktur implementiert D3D11_TEXTURE2D_DESC.
Member
Instanziiert eine neue instance einer nicht initialisierten CD3D11_TEXTURE2D_DESC-Struktur.
void CD3D11_TEXTURE2D_DESC( const D3D11_TEXTURE2D_DESC & o)
Instanziiert eine neue instance einer CD3D11_TEXTURE2D_DESC-Struktur, die mit einer D3D11_TEXTURE2D_DESC-Struktur initialisiert wird.
Instanziiert eine neue instance einer CD3D11_TEXTURE2D_DESC-Struktur, die mit D3D11_TEXTURE2D_DESC Werten initialisiert wird.
Zerstört eine instance einer CD3D11_TEXTURE2D_DESC-Struktur.
Hinweise
So definiert D3D11.h CD3D11_TEXTURE2D_DESC:
struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC { CD3D11_TEXTURE2D_DESC() {} explicit CD3D11_TEXTURE2D_DESC( const D3D11_TEXTURE2D_DESC& o ) : D3D11_TEXTURE2D_DESC( o ) {} explicit CD3D11_TEXTURE2D_DESC( DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1, UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE, D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1, UINT sampleQuality = 0, UINT miscFlags = 0 ) { Width = width; Height = height; MipLevels = mipLevels; ArraySize = arraySize; Format = format; SampleDesc.Count = sampleCount; SampleDesc.Quality = sampleQuality; Usage = usage; BindFlags = bindFlags; CPUAccessFlags = cpuaccessFlags; MiscFlags = miscFlags; } ~CD3D11_TEXTURE2D_DESC() {} operator const D3D11_TEXTURE2D_DESC&() const { return *this; } }; |
Anforderungen
Anforderung | Wert |
---|---|
Unterstützte Mindestversion (Client) | Windows 7 [Desktop-Apps | UWP-Apps] |
Unterstützte Mindestversion (Server) | Windows Server 2008 R2 [Desktop-Apps | UWP-Apps] |
Kopfzeile | d3d11.h |