API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classRenderPassInspectorLayer

@codexo/exojs/debug / debug / stable

Debug layer that lists every RenderNode with an active filter chain each frame. Renders a compact text panel with per-drawable rows showing the filter sequence, bounding-box dimensions, and mask/cache status. Use during development to answer: - "Is my filter actually attached?" → it appears in the list - "Why does my frame have N render passes?" → see total pass count - "Is this drawable being re-rendered or cached?" → `[cached]` flag For deep per-pass inspection (intermediate render-target contents, GLSL/WGSL source, uniform values), use Spector.js or Chrome DevTools' WebGPU panel - the engine emits debug-group labels around filter and mesh-custom-shader passes so those tools show meaningful pass names.

5
props
6
methods
0
events
Import
import { RenderPassInspectorLayer } from '@codexo/exojs/debug'

Debug layer that lists every RenderNode with an active filter chain each frame. Renders a compact text panel with per-drawable rows showing the filter sequence, bounding-box dimensions, and mask/cache status.

Use during development to answer:

- "Is my filter actually attached?" → it appears in the list - "Why does my frame have N render passes?" → see total pass count - "Is this drawable being re-rendered or cached?" → `[cached]` flag

For deep per-pass inspection (intermediate render-target contents, GLSL/WGSL source, uniform values), use Spector.js or Chrome DevTools' WebGPU panel - the engine emits debug-group labels around filter and mesh-custom-shader passes so those tools show meaningful pass names.

Constructors1
Methods6
destroy(): void
Release any scene-graph nodes or resources owned by this layer. Called by DebugOverlay.destroy. The base implementation is a no-op; subclasses override to tear down their Container subtrees.
render(backend: RenderBackend): void
Submit the panel's Container subtree to the backend for drawing.
Walk the scene graph and collect filter-chain entries for every RenderNode with at least one filter. Replaces the previous frame's snapshot. The current snapshot is exposed via entries for tests and external consumers.
Properties5
visible: boolean
Read-only snapshot of the entries collected on the most recent update call. Useful for tests and for external tooling that wants to render its own visualisation rather than use the built-in panel.
totalPasses: number
Total pass count across all collected entries.
Whether this layer renders in the scene's world-space view or in a screen-space (canvas-pixel) view. Defaults to 'screen'. Subclasses override to return 'world' when rendering at actual scene positions.
Source