Skip to content

Intermact API Reference / @intermact/render-three / handleComputeMessages

Function: handleComputeMessages()

handleComputeMessages(scope): void

Defined in: worker/entry.ts:21

Install the compute-job handler on a worker scope (design.md §15.2 #6). In a real Worker entry module call handleComputeMessages(self). Each request runs the pure kernel and posts back a typed ComputeResponse, transferring result buffers to avoid a copy. Errors are reported, never thrown across the boundary.

Parameters

scope

ComputeWorkerScope

Returns

void

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)