Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::geode::GeodeResidentPathSlots Struct Reference

Sibling of GeodePathCacheComponent: holds the GPU residence for an entity's fill and stroke encodes. Installed lazily by RendererGeode at the solid-fill draw sites; removed by the same entt listener that clears GeodePathCacheComponent when geometry changes. More...

#include "donner/svg/renderer/geode/GeodeResidentPathComponent.h"

Public Attributes

std::array< GeodeResidentSlot, kGeodeFillVariantCount > fillSlots
 Solid fill's resident geometry and record, one per cached fill encode variant.
std::array< std::unique_ptr< GeodeResidentStrokeSlots >, kGeodeStrokeVariantCount > strokeSlots
 Stroke residence, one per cached stroke variant. Allocated on first use, so an entity that is never stroked keeps only the pointers, and at a stable address, so a pending batch can keep pointing at a slot.
std::array< GeodeResidentGradientSlot, kGeodeFillVariantCount > gradientFillSlots
 Gradient-painted fill residence, one per cached fill encode variant.

Detailed Description

Sibling of GeodePathCacheComponent: holds the GPU residence for an entity's fill and stroke encodes. Installed lazily by RendererGeode at the solid-fill draw sites; removed by the same entt listener that clears GeodePathCacheComponent when geometry changes.

Member Data Documentation

◆ fillSlots

std::array<GeodeResidentSlot, kGeodeFillVariantCount> donner::geode::GeodeResidentPathSlots::fillSlots

Solid fill's resident geometry and record, one per cached fill encode variant.

◆ gradientFillSlots

std::array<GeodeResidentGradientSlot, kGeodeFillVariantCount> donner::geode::GeodeResidentPathSlots::gradientFillSlots

Gradient-painted fill residence, one per cached fill encode variant.

◆ strokeSlots

std::array<std::unique_ptr<GeodeResidentStrokeSlots>, kGeodeStrokeVariantCount> donner::geode::GeodeResidentPathSlots::strokeSlots

Stroke residence, one per cached stroke variant. Allocated on first use, so an entity that is never stroked keeps only the pointers, and at a stable address, so a pending batch can keep pointing at a slot.


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