@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.
25 lines • 921 B
JavaScript
import { FrameGraphTask } from "./frameGraphTask.js";
/**
* Base class for frame graph tasks that involve multi-target rendering.
*/
export class FrameGraphTaskMultiRenderTarget extends FrameGraphTask {
constructor() {
super(...arguments);
this._layerAndFaceIndicesUpdated = false;
}
/**
* Sets the output layer and face indices for multi-target rendering.
* @param indices The array of layer and face indices.
*/
setOutputLayerAndFaceIndices(indices) {
this._outputLayerAndFaceIndices = indices;
this._layerAndFaceIndicesUpdated = indices.length > 0;
}
_updateLayerAndFaceIndices(pass) {
if (this._layerAndFaceIndicesUpdated) {
pass.setOutputLayerAndFaceIndices(this._outputLayerAndFaceIndices);
this._layerAndFaceIndicesUpdated = false;
}
}
}
//# sourceMappingURL=frameGraphTaskMultiRenderTarget.js.map