UNPKG

@deck.gl/extensions

Version:

Plug-and-play functionalities for deck.gl layers

31 lines 931 B
// deck.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import { GL } from '@luma.gl/constants'; export function createRenderTarget(device, opts) { return device.createFramebuffer({ id: opts.id, colorAttachments: [ device.createTexture({ id: opts.id, ...(opts.float && { format: 'rgba32float', type: 5126 }), dimension: '2d', width: 1, height: 1, sampler: opts.interpolate === false ? { minFilter: 'nearest', magFilter: 'nearest' } : { minFilter: 'linear', magFilter: 'linear' } }) ] }); } //# sourceMappingURL=utils.js.map