Aperture UI
Integration

Rendering architecture

Submit a view's command list through the host renderer.

The engine produces a command list. Your host executes it into a target belonging to the game renderer.

HTML → DOM → element tree → computed styles → layout boxes
     → paint tree → Harrlow command list → host GPU backend

Gumbo parses HTML. The CSS cascade resolves styles. The layout engine provides block, inline, flex, grid, table and multi-column formatting; Yoga supplies flex layout. The paint pipeline records visual order, transforms, clips and draw commands.

Call tick() on the owning thread, then buildCommandList(). Supply the host context with setRenderPathContext() and submit the returned list as described in Rendering backends.

Stacking contexts and intermediate targets

A stacking context records paint order; it does not necessarily allocate a target. The current paint-tree builder requests a compositing layer for fractional opacity, filters, backdrop filters, non-normal blend modes, mask-image and polygon() or ellipse() clip paths. A transform or will-change hint alone does not provide cached subtree rendering.

Layout is incremental by default: the engine lays out the changed elements and their ancestors and reuses clean subtrees, and SetIncrementalLayoutEnabled(false) turns that off so that every pass lays out the whole tree. Every restyled element is laid out again, though, because the engine does not check whether a style change could affect layout. See Rendering performance, and measure the host's frame rather than assuming a changed leaf limits work to that leaf.

Render-to-texture helpers

The public header marks renderToTexture(), getRenderTexture(), getRenderTarget() and isRenderTextureInitialized() as unimplemented. Use the command-list path. Configuration setters do not make these helpers usable.

The host chooses target format, color space and compositing order. Release GPU resources through the host backend.

On this page