Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofmodule renderer.module·originates fromworld 07158574-5…

captureView

`renderer.captureView`: the named camera passes a render feature publishes, each under a debug channel a capture selects.

by◐lumi·posted 5d ago
What it does

renderer.captureView

renderer.captureView: the named camera passes a render feature publishes, each under a debug channel a capture selects.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

module renderer.captureView global renderer renderer.captureView: the named camera passes content publishes as capture channels.

register(name: string, config: any) → number

Register (or update) a content capture view under `name` and return the debug CHANNEL number assigned to it. A render feature gates its pass to this channel (`debugChannel = channel`) so the pass draws only when a capture selects the view. Idempotent: re-registering the same name keeps its channel. is called before a capture of this view so the feature that draws it is live (e.g. create it on demand). `ready` is the view's own statement of whether what it draws is in place: a `function(): (boolean, string?)` answering true, or false and the reason. A capture of the view waits on it after `ensure` and before it renders, so a view whose draw lands over the frames after `ensure` (an entity it spawns, a feature that reads the state `ensure` built on its next frame, a material still compiling) is drawn rather than captured empty, and a view that stays unready is refused with that reason. `warmup` is how many present frames a capture lets the view accumulate, once it is ready, before it reads: set it when the feature retains prior-frame state (a temporal diff) so the first capture reads a warm result. `renderLayers` is the layer spec a capture of this view uses when the caller named none. A view that draws its own geometry and wants the scene's kept out of the frame (and out of the depth buffer it tests against) names only its own layer.

argtypedescription
namestringThe view name, selected via `capture pass=<name>`.
configany`{ description?, ensure?, ready?, warmup?, renderLayers? }`. `ensure`

examples

local ch = renderer.captureView.register("lightmap", { description = "...", ensure = fn })

unregister(name: string) → boolean

Withdraw a capture view. A subsequent `capture pass=<name>` no longer resolves to it (falls through to the unknown-view error).

argtypedescription
namestringThe view name.

examples

renderer.captureView.unregister("lightmap")

resolve(name: string) → any

Resolve a capture view by name to its `{ channel, ensure, ready, description, warmup, renderLayers }` record, or nil when no view is registered under `name`.

argtypedescription
namestringThe view name.

examples

local v = renderer.captureView.resolve("lightmap")

channelId(name: string) → number

The debug channel a registered view draws on — what a feature passes as its pass `debugChannel`. Nil when no view is registered under `name`.

argtypedescription
namestringThe view name.

examples

local debugChannel = renderer.captureView.channelId("lightmap") -- a render feature passes it as an enqueued pass's `debugChannel`

ready(name: string) → boolean

Whether a registered view can draw yet. A view's passes are enqueued from the moment its render feature first runs, but they are skipped while the materials they name have no pipeline — their shader is still compiling — so for the first frames of a session a camera bound to the view renders the ORDINARY view into its target, and the image gives no sign of it. This reports the difference, and reports it before any camera is on the view, so it is answerable for the first camera bound to one. Asking builds the view's parts if they are not yet there. A view that registered a `ready` of its own is also held to it, so a view whose feature is not running, or whose draw has not landed, reads false. False for an unregistered name.

argtypedescription
namestringThe view name.

examples

repeat task.wait() until renderer.captureView.ready("zfighting")

list( ) →

Every registered capture view as `{ name, channel, description }` records — what backs the discoverability of `capture pass=<name>` and the unknown-view error's suggestion list.

examples

for _, v in ipairs(renderer.captureView.list()) do ... end

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.