@deck.gl/core
Version:
deck.gl core library
18 lines (14 loc) • 493 B
text/typescript
// deck.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
import LayersPass from './layers-pass';
import type {LayersPassRenderOptions, RenderStats} from './layers-pass';
export default class DrawLayersPass extends LayersPass {
shouldDrawLayer(layer) {
const {operation} = layer.props;
return operation.includes('draw') || operation.includes('terrain');
}
render(options: LayersPassRenderOptions): RenderStats[] {
return this._render(options);
}
}