implementing more chunk ops based on GPU

composing, toEdits
This commit is contained in:
りき萌 2025-09-08 22:10:55 +02:00
parent bb55e23979
commit 1bbf1b1d94
5 changed files with 259 additions and 38 deletions

View file

@ -261,10 +261,10 @@ function readUrl(urlString) {
});
canvasRenderer.addEventListener(".commitInteraction", async () => {
let scratchLayer = currentUser.commitScratchLayer(wall);
let scratchLayer = currentUser.commitScratchLayer(chunkAllocator, wall);
if (scratchLayer == null) return;
let edits = await scratchLayer.toEdits();
let edits = await scratchLayer.toEdits(chunkAllocator);
scratchLayer.destroy(chunkAllocator);
let editRecords = [];