CD3DX12_VIEWPORT structure

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

A helper structure to enable easy initialization of a D3D12_VIEWPORT structure.

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;
};

Members

CD3DX12_VIEWPORT()

Creates a new, uninitialized, instance of a CD3DX12_VIEWPORT.

explicit CD3DX12_VIEWPORT(const D3D12_VIEWPORT& o)

Creates a new instance of a CD3DX12_VIEWPORT, initializing the following parameters:

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)

Creates a new instance of a CD3DX12_VIEWPORT, initializing the following parameters:

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)

Creates a new instance of a CD3DX12_VIEWPORT, initializing the following parameters:

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()

Destroys an instance of a D3DX12_VIEWPORT.

operator const D3D12_VIEWPORT&() const

Defines the & pass-by-reference operator for the parent structure type.

Requirements

Header
D3dx12.h

See also

D3D12_VIEWPORT

Helper Structures for D3D12