Documentation
    Preparing search index...

    Interface NodeMaterialPrograms

    One renderer's node-program cache — created lazily on the renderer's first node-material draw, dropped on context loss, disposed with the renderer. Programs compile per distinct graph, on first use, and a graph whose compile failed is latched null on this context (asked once, not once per frame).

    interface NodeMaterialPrograms {
        programCount: number;
        acquire(graph: ShaderGraph): NodeMaterialProgram | null;
        dispose(): void;
    }

    Implemented by

    Index
    programCount: number

    Distinct programs compiled so far — the lazy-compile observable.

    • Deletes every compiled program. Live context only; idempotent.

      Returns void