Skip to content
class

NodeHooks

NodeHooks

The hook slots of one node, by output slot.

Slots are held through shared_ptr so that the engine can keep the one it is running alive: a hook may register another one (growing this list) or run a backward pass of its own that releases this node's hooks.

Methods

2
fn

ensure

int ensure(int output_nr)

The slot of output output_nr, made empty if it does not exist yet.

fnconst

find

int find(int output_nr)

The slot of output output_nr, or null when nothing was registered there.