Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::Origin2d Struct Reference

A 2D texel coordinate, used as the corner a copy region starts at. The default (0, 0) is the whole-rect-from-the-origin convention every copy used before sub-rectangle copies existed. More...

#include "donner/gpu/Descriptors.h"

Public Member Functions

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

Public Attributes

uint32_t x = 0
 Column of the first copied texel.
uint32_t y = 0
 Row of the first copied texel.

Friends

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

Detailed Description

A 2D texel coordinate, used as the corner a copy region starts at. The default (0, 0) is the whole-rect-from-the-origin convention every copy used before sub-rectangle copies existed.

Member Function Documentation

◆ operator==()

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

Equality operator.

Parameters
otherOrigin to compare against.

◆ operator<<

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

Ostream output operator, e.g. (4, 8).

Parameters
osOutput stream.
valueOrigin to output.

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