Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::RendererSurfaceBudget Class Reference

Aggregate budget for render targets, layers, masks, clips, and pattern tiles. More...

#include "donner/svg/renderer/RendererInterface.h"

Classes

struct  Limits

Public Member Functions

void reset ()
bool reserve (int width, int height, std::size_t surfaceCount=1, std::uint64_t bytesPerPixel=4)
bool release (int width, int height, std::size_t surfaceCount=1, std::uint64_t bytesPerPixel=4)
 Releases surfaces after their last submitted GPU use, restoring active-capacity accounting.
std::uint64_t bytes () const
std::size_t surfaces () const
bool rejected () const
void setLimitsForTesting (Limits limits)

Static Public Attributes

static constexpr std::uint64_t kMaximumBytes = 256ULL * 1024 * 1024
static constexpr std::size_t kMaximumSurfaces = 256

Detailed Description

Aggregate budget for render targets, layers, masks, clips, and pattern tiles.


Class Documentation

◆ donner::svg::RendererSurfaceBudget::Limits

struct donner::svg::RendererSurfaceBudget::Limits
Class Members
uint64_t bytes = kMaximumBytes
size_t surfaces = kMaximumSurfaces

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