robot_2Generated
code_blocksInput

Description

The ViewportSize property provides a handle to the size of the viewport in the rendering command list. This handle can be used to retrieve or manipulate the dimensions of the viewport, which is essential for rendering operations that depend on the current viewport size.

Usage

To access the viewport size in a rendering command list, use the ViewportSize property. This property returns a RenderTargetHandle.SizeHandle object, which can be used to query or set the size of the viewport.

Example

// Example of accessing the ViewportSize property
var commandList = new CommandList();
var viewportSizeHandle = commandList.ViewportSize;

// Use the viewportSizeHandle to perform operations related to the viewport size
// For example, you might want to adjust rendering parameters based on the viewport dimensions.