Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::gpu::SetViewportCommand Struct Reference

Recorded setViewport. More...

#include "donner/gpu/Commands.h"

Public Attributes

float x = 0
 Left edge in pixels.
float y = 0
 Top edge in pixels.
float width = 0
 Width in pixels.
float height = 0
 Height in pixels.
float minDepth = 0
 Minimum depth of the viewport range.
float maxDepth = 1
 Maximum depth of the viewport range.

Detailed Description

Recorded setViewport.

Member Data Documentation

◆ height

float donner::gpu::SetViewportCommand::height = 0

Height in pixels.

◆ maxDepth

float donner::gpu::SetViewportCommand::maxDepth = 1

Maximum depth of the viewport range.

◆ minDepth

float donner::gpu::SetViewportCommand::minDepth = 0

Minimum depth of the viewport range.

◆ width

float donner::gpu::SetViewportCommand::width = 0

Width in pixels.

◆ x

float donner::gpu::SetViewportCommand::x = 0

Left edge in pixels.

◆ y

float donner::gpu::SetViewportCommand::y = 0

Top edge in pixels.


The documentation for this struct was generated from the following file: