Skip to main content
Describes the dimensions of a viewport.

Syntax

Members

TopLeftX
Type: FLOAT
X position of the left hand side of the viewport. TopLeftY
Type: FLOAT
Y position of the top of the viewport. Width
Type: FLOAT
Width of the viewport. Height
Type: FLOAT
Height of the viewport. MinDepth
Type: FLOAT
Minimum depth of the viewport. Ranges between 0 and 1. MaxDepth
Type: FLOAT
Maximum depth of the viewport. Ranges between 0 and 1.

Remarks

Pass an array of these structures to the pViewports parameter in a call to ID3D12GraphicsCommandList::RSSetViewports to set viewports for the display.

Requirements

Header: d3d12_xs.h or d3d12_x.h
Library: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family

See Also

Core Structures
Last modified on August 20, 2026