@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.
29 lines (28 loc) • 1.14 kB
TypeScript
import type { Nullable, AbstractEngine, IFrameGraphPass, FrameGraphContext, FrameGraphObjectList, FrameGraphTask } from "../../index.js";
import { FrameGraphPass } from "./pass.js";
/**
* Cull pass used to filter objects that are not visible.
*/
export declare class FrameGraphCullPass extends FrameGraphPass<FrameGraphContext> {
protected readonly _engine: AbstractEngine;
protected _objectList: FrameGraphObjectList;
/**
* Checks if a pass is a cull pass.
* @param pass The pass to check.
* @returns True if the pass is a cull pass, else false.
*/
static IsCullPass(pass: IFrameGraphPass): pass is FrameGraphCullPass;
/**
* Gets the object list used by the cull pass.
*/
get objectList(): FrameGraphObjectList;
/**
* Sets the object list to use for culling.
* @param objectList The object list to use for culling.
*/
setObjectList(objectList: FrameGraphObjectList): void;
/** @internal */
constructor(name: string, parentTask: FrameGraphTask, context: FrameGraphContext, engine: AbstractEngine);
/** @internal */
_isValid(): Nullable<string>;
}