Documentation
    Preparing search index...

    Class ShaderOperatorRegistry

    Named shader-operator factory table for §81's "materials and shader nodes" point.

    Map preserves insertion order, which is the order names reports (§33).

    Index
    • get names(): readonly string[]

      Registered names, in insertion order.

      Returns readonly string[]

    • get size(): number

      Number of registered operators.

      Returns number

    • The factory for name, or undefined.

      Parameters

      • name: string

      Returns ShaderOperatorFactory | undefined

    • The safe data-declared operator for a name, or undefined.

      Parameters

      • name: string

      Returns ShaderFunction | undefined

    • Whether name has a factory or data declaration.

      Parameters

      • name: string

      Returns boolean

    • Registers factory under name. Returns this so registrations chain.

      Parameters

      Returns this

      FourError INVALID_APPLICATION_STATE if name is empty, or if a different factory already occupies that name.

    • Registers a JSON-declared reusable operator. The declaration is copied, validated, frozen and lowered only through the closed node IR (§96). Existing names cannot be overwritten by either registration form.

      Parameters

      Returns this