Class Generation

Class Documentation

class Generation

One complete immutable geometry/atlas generation paired with its placements.

CPU submission copies selected handles into packets; replacing this value never mutates resources retained by earlier frames. Native use follows provider lifetime.

Public Functions

inline const ShapedText &layout() const noexcept

Declaration: [[nodiscard]]

Borrow the shaping result retained with these uploaded resources.

Keep this value alive and unmoved while using a returned view/reference.

inline std::span<const PageResources> pages() const noexcept

Declaration: [[nodiscard]]

Borrow immutable page resources; copy their handles for independent retention.

Keep this value alive and unmoved while using a returned view/reference.

inline std::span<const GlyphDraw> draws() const noexcept

Declaration: [[nodiscard]]

Borrow visible glyph placements matching the uploaded page indices.

Keep this value alive and unmoved while using a returned view/reference.

inline bool has_positioned_runs() const noexcept

Declaration: [[nodiscard]]

Return whether positioned-run geometry was requested.

inline const std::shared_ptr<CE::Rendering::Geometry::Buffer2D> &positioned_geometry() const noexcept

Declaration: [[nodiscard]]

Borrow optional retained positioned geometry; copy the handle for independent retention.

Keep this value alive and unmoved while using a returned view/reference.

inline std::span<const DrawRun> runs() const noexcept

Declaration: [[nodiscard]]

Borrow authored positioned draw ranges sharing page atlases.

Keep this value alive and unmoved while using a returned view/reference.

inline const std::shared_ptr<const CE::Rendering::Resources::Material> &material() const noexcept

Declaration: [[nodiscard]]

Borrow the selected optional material; an empty no-draw generation may have none.

Keep this value alive and unmoved while using a returned view/reference.