Function CE::Rendering::Submission::resolve_text_runs

Function Documentation

std::vector<DrawPacket2D> CE::Rendering::Submission::resolve_text_runs(const CE::Text::Rendering::Generation &text, const DrawStyle2D &style, const Context2D &context)

Declaration: [[nodiscard]]

Resolve prepositioned geometry as contiguous atlas-page runs in authored order.

Parameters:
  • text – Generation prepared with positioned_runs enabled; otherwise invalid_args is thrown.

  • style – Whole-text model/scale and optional material override.

  • context – Pass inputs with required nonempty page-image insertion, absent from style.parameters.

Returns:

Owned validated page-run packets, empty for no visible runs. The shader must apply common scale/model to positioned vertices without per-glyph/draw-identity semantics. Regrouped floating-point transforms may change boundary pixels; use resolve_text() for original per-glyph evaluation. Validation/allocation failures publish nothing.