Coldwave Read the docs

Protocol: render#

The render commands a program sends to a running game, as the engine describes them: what each takes, what it answers and what it does. Back to all commands.

render.passes#

render.passes {} -> {step: integer, declared: value, passes: [record], culled: [text], targets: [record], textures: integer, pipelines: [record]} · read, read-only

Says how the frame is drawn: the frame graph as it runs, compiled from the project's [render] (or the one pass of a project without it), the passes it dropped, the targets and which share a texture, and the pipelines built for it before the first frame, with the draws each pass made and the milliseconds it took on the CPU in the last picture drawn. It draws nothing and needs no graphics device.

ResultTypeMeaning
stepintegerHow many fixed steps have run.
declaredvaluetrue when the project has a [render] table; false for the implicit graph.
passes[record]One per pass that runs, in order: {name, into, read, clears, bars, pipeline} and, for a pass that draws, draws = "layers" with from and to (null for no bound), "meshes" or "sky", or for an effect, effect with threshold and strength. into is the target written ("frame" for the frame), read the targets read, clears whether it is the first pass into its target, bars whether it draws the bars beside a frame of another shape last, pipeline a place in pipelines. draw_calls is how many draws the pass made in the last picture drawn (a frame.capture, or a frame in a window): one a run of quads with one picture, one a run of one mesh in one material, one the sky (none with no Sky), one an effect; null before any picture is drawn. cpu_ms is the milliseconds the pass took on the CPU in that picture: the engine recording its commands and handing them to the device, measured by the clock, so another run says another number (a measurement, never part of a checksum or a picture); null before any picture is drawn. The GPU's own time is not said: the passes of a frame are handed to the device together and run after, and the device's timestamps need a feature not every device has.
culled[text]The passes dropped because nothing they write reaches the frame.
targets[record]One {name, format, size, texture, shares} per target declared: format "rgba8" or "rgba16f"; size "frame", "frame/N" or pixels; texture the texture it is drawn into, null when every pass using it was dropped; shares the other targets in the same texture, never alive at once with it.
texturesintegerHow many textures the targets take.
pipelines[record]One {draws: "quads", "shapes", "meshes" or "sky"} or {effect} per pipeline, with the format it writes: all made when the graph was made ready, none while playing.

Generated from Coldwave 0.0.1 r289, 2026-11-30 by the binary itself: do not edit by hand.