Add p5.storageBuffer method for deleting/destroying/unallocating
Open
@samjwebster is already working on this.
Since Aug 15, 2026.
Enhancement
- Dominant language
- JavaScript
- Stars
- 24k
- Forks
- 3.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 25
Description
Increasing access
Would make this functionality available to those with lower techical ability or understanding
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
Feature enhancement details
Sub-area: p5.storageBuffer, WebGPU, p5.strands
Currently, p5.storageBuffer supports .read(), .set(), and .update() methods, but no method for deleting or destroying the buffer. It would be useful to add a .delete() method or deleteStorage(buffer).
This is seemingly currently achievable with p5.storageBuffer.buffer.destroy(), as pointed out by @davepagurek , though I didn't test it deeply
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.