Register fixed element slots and native expressions in one Native entry.
modelAttached elements' model.
elementsElements already attached to this model, in slot order.
expressionsOne native numeric expression per element.
updateKernel invoked once for each stable dirty interval.
optionsOrdering and command capacity.
Retained numeric command planes using the registered element slots.
Output command buffer; return its prefix count to consume.
Native numeric expression results corresponding to the compact slots.
Retained double plane; treat as read-only in the callback.
Stable element slots of the current dirty interval, valid up to count.
Retained compact slot plane; treat as read-only in the callback.
Explicit numeric view group evaluated by the native model scheduler.
Remarks
Each registered element has one native expression and a stable slot. A callback receives only dirty views in a contiguous interval of the scheduler's existing order, with the same group and cached sort order. Legacy views and other groups break intervals. Inputs are finite doubles evaluated before the callback. Expressions may use native storage/aliases and transforms; JS getters/transforms still make their own callbacks. Return a command count after writing commands. Native validates the entire prefix, snapshots it and consumes in order; queries see earlier writes. Throwing applies no returned commands; execution failures retain the completed prefix in commands.consumed. The callback may add other groups for the scheduler's existing same-frame rounds. An active group cannot release or recursively update. Old mappings retain bytes after teardown.