import * as example from './source.js'; import { mountGalleryExample } from '../runtime/mount.js'; let dispose; export async function mount(container) { await unmount(); dispose = await mountGalleryExample("webgpu_gaussiansplat_lit", example, container); } export async function unmount() { if (dispose) { const cleanup = dispose; dispose = undefined; await cleanup(); } }