@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.
23 lines (22 loc) • 763 B
TypeScript
import type { FrameGraph, FrameGraphContext, FrameGraphPass } from "../../../index.js";
import { FrameGraphTask } from "../../frameGraphTask.js";
/**
* Task used to execute a custom function.
*/
export declare class FrameGraphExecuteTask extends FrameGraphTask {
/**
* The function to execute.
*/
func: (context: FrameGraphContext) => void;
/**
* The function to execute when the task is disabled (optional).
*/
funcDisabled?: (context: FrameGraphContext) => void;
/**
* Creates a new execute task.
* @param name The name of the task.
* @param frameGraph The frame graph the task belongs to.
*/
constructor(name: string, frameGraph: FrameGraph);
record(): FrameGraphPass<FrameGraphContext>;
}