CD3DX12 _ VIEWPORT-Struktur

[Einige Informationen beziehen sich auf Vorabversionen, die vor der kommerziellen Freigabe grundlegend geändert werden können. Microsoft übernimmt keine Garantie, weder ausdrücklich noch stillschweigend, für die hier bereitgestellten Informationen.]

Eine Hilfsstruktur, um eine einfache Initialisierung einer D3D12 _ VIEWPORT-Struktur zu ermöglichen.

Syntax

struct CD3DX12_VIEWPORT  : public D3D12_VIEWPORT{
   CD3DX12_VIEWPORT();
   explicit CD3DX12_VIEWPORT(const D3D12_VIEWPORT& o);
   explicit CD3DX12_VIEWPORT(FLOAT topLeftX, FLOAT topLeftY, FLOAT width, FLOAT height, FLOAT minDepth = D3D12_MIN_DEPTH, FLOAT maxDepth = D3D12_MAX_DEPTH);
   explicit CD3DX12_VIEWPORT(ID3D12Resource* pResource, UINT mipSlice = 0, FLOAT topLeftX = 0.0f, FLOAT topLeftY = 0.0f, FLOAT minDepth = D3D12_MIN_DEPTH, FLOAT maxDepth = D3D12_MAX_DEPTH);
   ~CD3DX12_VIEWPORT();
   operator const D3D12_VIEWPORT&() const;
};

Member

CD3DX12 _ VIEWPORT()

Erstellt eine neue, nicht initialisierte Instanz eines CD3DX12 _ VIEWPORT.

explicit CD3DX12 _ VIEWPORT(const D3D12 _ VIEWPORT& o)

Erstellt eine neue Instanz eines CD3DX12 _ VIEWPORT und initialisiert die folgenden Parameter:

const D3D12 _ VIEWPORT& o

explizites CD3DX12 _ VIEWPORT(FLOAT topLeftX, FLOAT topLeftY, FLOAT width, FLOAT height, FLOAT minDepth = D3D12 _ MIN _ DEPTH, FLOAT maxDepth = D3D12 _ MAX _ DEPTH)

Erstellt eine neue Instanz eines CD3DX12 _ VIEWPORT und initialisiert die folgenden Parameter:

FLOAT topLeftX

FLOAT topLeftY

FLOAT-Breite

FLOAT-Höhe

FLOAT minDepth = D3D12 _ MIN _ DEPTH

FLOAT maxDepth = D3D12 _ MAX _ DEPTH

explicit CD3DX12 _ VIEWPORT(ID3D12Resource * pResource, UINT mipSlice = 0, FLOAT topLeftX = 0.0f, FLOAT topLeftY = 0.0f, FLOAT minDepth = D3D12 _ MIN _ DEPTH, FLOAT maxDepth = D3D12 _ MAX _ DEPTH)

Erstellt eine neue Instanz eines CD3DX12 _ VIEWPORT und initialisiert die folgenden Parameter:

ID3D12Ressourcen-pResource *

UINT mipSlice = 0

FLOAT topLeftX = 0,0f

FLOAT topLeftY = 0,0f

FLOAT minDepth = D3D12 _ MIN _ DEPTH

FLOAT maxDepth = D3D12 _ MAX _ DEPTH

~CD3DX12 _ VIEWPORT()

Zerstört eine Instanz eines D3DX12 _ VIEWPORT.

operator const D3D12 _ VIEWPORT&() const

Definiert den & pass-by-reference-Operator für den übergeordneten Strukturtyp.

Anforderungen

Anforderung Wert
Header
D3dx12.h

Weitere Informationen

D3D12 _ VIEWPORT

Strukturen des Hilfsprogramms für D3D12