UNPKG

s2maps-gpu

Version:

S2 Maps GPU - An open source, high-performance, and GPU-accelerated map engine for rendering large-scale, interactive maps.

10 lines (9 loc) 378 B
import type { MaskSource } from '../workflows/workflow.spec.js'; import type { WebGPUContext } from './index.js'; /** * Builds a mask source * @param division - number of division to slice the geometry by * @param context - The current rendering context * @returns The mask source */ export default function buildMask(division: number, context: WebGPUContext): MaskSource;