Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit61a33237e0

README.md

renderDiagnostics module

Publishes the overdraw and zfighting capture views, so capture pass=<name> resolves to them. Requiring the module registers both.

local diagnostics = require("@builtin::systems.renderDiagnostics.renderDiagnostics")

diagnostics.register()     -- idempotent; already done by the require
diagnostics.unregister()   -- withdraw both views and drop their features

Registration is cheap and permanent: each view's passes are gated to the debug channel the registration hands out, so they are skipped for every camera that is not a capture selecting that view. The feature that draws a view is created the first time it is selected, through the registration's ensure.

renderer.captureView.list() enumerates every registered view, and the package readme has what each colour band means.