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.08 kB
import type { IFlowGraphBlockConfiguration } from "../../flowGraphBlock.js"; import { FlowGraphBlock } from "../../flowGraphBlock.js"; import type { FlowGraphContext } from "../../flowGraphContext.js"; import type { FlowGraphDataConnection } from "../../flowGraphDataConnection.js"; import type { RichType } from "../../flowGraphRichTypes.js"; /** * 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; }