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::svg::compositor::LayerResolverStats Struct Reference

Stats produced by LayerResolver::resolve(). Tests inspect these. More...

#include "donner/svg/compositor/LayerResolver.h"

Public Attributes

uint32_t candidatesEvaluated = 0
 Total number of entities with a non-empty CompositorHintComponent seen this pass.
uint32_t layersAssigned = 0
 Number of entities that received a non-zero ComputedLayerAssignmentComponent this pass.
uint32_t budgetExhaustions = 0
 Count of non-mandatory candidates that lost their slot to the budget cap. Mandatory candidates that exceed the budget are not counted here (they always take precedence); each such eviction logs to stderr and increments this counter too so tests can catch over-budget mandatory sets.

Detailed Description

Stats produced by LayerResolver::resolve(). Tests inspect these.

Member Data Documentation

◆ budgetExhaustions

uint32_t donner::svg::compositor::LayerResolverStats::budgetExhaustions = 0

Count of non-mandatory candidates that lost their slot to the budget cap. Mandatory candidates that exceed the budget are not counted here (they always take precedence); each such eviction logs to stderr and increments this counter too so tests can catch over-budget mandatory sets.

◆ candidatesEvaluated

uint32_t donner::svg::compositor::LayerResolverStats::candidatesEvaluated = 0

Total number of entities with a non-empty CompositorHintComponent seen this pass.

◆ layersAssigned

uint32_t donner::svg::compositor::LayerResolverStats::layersAssigned = 0

Number of entities that received a non-zero ComputedLayerAssignmentComponent this pass.


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