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.

36 lines (35 loc) 1.26 kB
import type { Camera, FrameGraph, FrameGraphTextureHandle, Scene } from "../../../index.js"; import { FrameGraphTask } from "../../frameGraphTask.js"; import { UtilityLayerRenderer } from "../../../Rendering/utilityLayerRenderer.js"; /** * Task used to render an utility layer. */ export declare class FrameGraphUtilityLayerRendererTask extends FrameGraphTask { /** * The target texture of the task. */ targetTexture: FrameGraphTextureHandle; /** * The camera used to render the utility layer. */ camera: Camera; /** * The output texture of the task. * This is the same texture as the target texture, but the handles are different! */ readonly outputTexture: FrameGraphTextureHandle; /** * The utility layer renderer. */ readonly layer: UtilityLayerRenderer; /** * Creates a new utility layer renderer task. * @param name The name of the task. * @param frameGraph The frame graph the task belongs to. * @param scene The scene the task belongs to. * @param handleEvents If the utility layer should handle events. */ constructor(name: string, frameGraph: FrameGraph, scene: Scene, handleEvents?: boolean); record(): void; dispose(): void; }