UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

27 lines (26 loc) 1.07 kB
import type { IFlowGraphBlockConfiguration } from "../../flowGraphBlock"; import { FlowGraphBlock } from "../../flowGraphBlock"; import type { FlowGraphContext } from "../../flowGraphContext"; import type { FlowGraphDataConnection } from "../../flowGraphDataConnection"; import type { RichType } from "../../flowGraphRichTypes"; /** * A block that will cache the result of an operation and deliver it as an output. */ export declare abstract class FlowGraphCachedOperationBlock<OutputT> extends FlowGraphBlock { /** * The output of the operation */ readonly value: FlowGraphDataConnection<OutputT>; /** * Output connection: Whether the value is valid. */ readonly isValid: FlowGraphDataConnection<boolean>; constructor(outputRichType: RichType<OutputT>, config?: IFlowGraphBlockConfiguration); /** * @internal * Operation to realize * @param context the graph context */ abstract _doOperation(context: FlowGraphContext): OutputT | undefined; _updateOutputs(context: FlowGraphContext): void; }