|
|
Donner SVG 0.8.0-pre
SVG editor and embeddable C++20 engine.
|
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 |
Aggregate budget for render targets, layers, masks, clips, and pattern tiles.
| struct donner::svg::RendererSurfaceBudget::Limits |