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. | |
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.
| std::array<GeodeResidentSlot, kGeodeFillVariantCount> donner::geode::GeodeResidentPathSlots::fillSlots |
Solid fill's resident geometry and record, one per cached fill encode variant.
| std::array<GeodeResidentGradientSlot, kGeodeFillVariantCount> donner::geode::GeodeResidentPathSlots::gradientFillSlots |
Gradient-painted fill residence, one per cached fill encode variant.
| 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.