Skip to content

registerDebugArray

registerDebugArray(name, ref, kind, opts?): void

Defined in: packages/three-flatland/src/debug/debug-sink.ts:112

Publish (or re-publish) a named CPU array to the devtools pane. Holds a reference; the host keeps mutating its own buffer. Call touchDebugArray(name) when you mutate in place so the provider knows to re-send on the next batch. Replacing the buffer (new ref) calls touchDebugArray implicitly.

Safe to call any time — no-op when devtools isn’t bundled.

string

Uint32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike> | Int32Array<ArrayBufferLike>

RegistryEntryKind

string

number

void