VisualRendering

ceramic.VisualRendering (Abstract)

How a Visual renders itself, used by the renderer to dispatch each visual to the right draw path without a runtime type check.

Every Visual carries a rendering tag set by its type (Quad → QUAD, Mesh → MESH, Renderable → RENDERABLE; plain visuals that render nothing directly stay NONE). The renderer hot loop switches on this Int instead of reading per-type fields and testing visual is Renderable, and the Visual.asQuad / Visual.asMesh helpers use it to cast safely.

See: Visual.rendering

Type Conversions

From:

  • [Int](/api-docs/clay-web/Int/)

To:

  • [Int](/api-docs/clay-web/Int/)

Metadata

Name Parameters
:enum -