Skip to content

Commit

Permalink
[debug] Add an preliminary cleanup step for temporary buffers.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoppex committed Oct 10, 2024
1 parent 91f8d09 commit 036867d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/parallel-marching-cube.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ export class Generator {
Utils.resetStorage(this.device, this.buffer.atomicCountVertices);
Utils.resetStorage(this.device, this.buffer.atomicCountIndices);

Utils.resetStorage(this.device, this.buffer.nonEmptyCells); //
Utils.resetStorage(this.device, this.buffer.verticesToGenerate); //
Utils.resetStorage(this.device, this.buffer.vertices); //
Utils.resetStorage(this.device, this.buffer.indices); //

Utils.clearTexture(this.device, this.vertexIndicesVolume); // [debug]
}

Expand Down

0 comments on commit 036867d

Please sign in to comment.