Log inGet started
Package

renderDiagnostics.module

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

renderDiagnostics module

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

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

diagnostics.register()     -- idempotent; already done by the require
diagnostics.unregister()   -- withdraw the 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, and builds its materials and effects as it is created. The registration's ready answers whether they can draw, and a capture waits on it, so the first capture of a view in a session is the view.

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