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::Extent2d Struct Reference

A 2D extent in texels. More...

#include "donner/gpu/Descriptors.h"

Public Member Functions

bool operator== (const Extent2d &other) const =default
 Equality operator.

Public Attributes

uint32_t width = 0
 Width in texels.
uint32_t height = 0
 Height in texels.

Friends

std::ostream & operator<< (std::ostream &os, const Extent2d &value)
 Ostream output operator, e.g. 4x4.

Detailed Description

A 2D extent in texels.

Member Function Documentation

◆ operator==()

bool donner::gpu::Extent2d::operator== ( const Extent2d & other) const
default

Equality operator.

Parameters
otherExtent to compare against.

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const Extent2d & value )
friend

Ostream output operator, e.g. 4x4.

Parameters
osOutput stream.
valueExtent to output.

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