v2.2.0-rc.3
Help test the release candidate
The 2.2 proposed minor release contains the ongoing work on WebGPU rendering! This is a release candidate (RC), which means it is not yet live on the p5.js Editor. Please help us to improve the stability of the newest version of p5.js by trying out this release candidate, and reporting bugs. You can also share your thoughts or get involved on Discord in the #webpgu channel!
Testing WebGPU mode
WebGPU mode is included in a core add-on now. To load both p5.js and WebGPU mode, add these two script tags to your sketch:
<script src="https://cdn.jsdelivr.net/npm/p5@2.2.0-rc.3/lib/p5.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5@2.2.0-rc.3/lib/p5.webgpu.js"></script>
Then load WebGPU mode in createCanvas:
async function setup() {
await createCanvas(400, 400, WEBGPU);
}
Or, feel free to duplicate this project on the p5.js web editor: https://editor.p5js.org/ksen0/sketches/Ger2euN_J
Read more about how it works and where we plan on taking it here: https://github.com/processing/p5.js/blob/dev-2.0/contributor_docs/webgpu.md
What's Changed 🎊
- Ported the stroke shader to WebGPU renderer by @lukeplowden in https://github.com/processing/p5.js/pull/7915
- Framebuffer support on WebGPU renderer by @davepagurek in https://github.com/processing/p5.js/pull/8008
- webgpu ci test by @tychedelia in https://github.com/processing/p5.js/pull/8023
- Add WIP WebGPU mode by @davepagurek in https://github.com/processing/p5.js/pull/8179
- Update release action to omit WebGPU tests, add TS tests by @davepagurek in https://github.com/processing/p5.js/pull/8337
- FES parameter validation decoration use
.apply()for faster function invocation by @limzykenneth in https://github.com/processing/p5.js/pull/8332 - Add WebGPU built files to npm releases by @davepagurek in https://github.com/processing/p5.js/pull/8338
- Make sure bytes are aligned in p5.Geometry by @davepagurek in https://github.com/processing/p5.js/pull/8340
- Fix WebGPU buffer memory leaks by @davepagurek in https://github.com/processing/p5.js/pull/8342
- Fix JSDoc return type for p5.Vector.cross (2.0) by @Geethegreat in https://github.com/processing/p5.js/pull/8346
- Add support for instanceID() in WebGPU mode by @davepagurek in https://github.com/processing/p5.js/pull/8348
- Fix WebGPU filters in CDN builds using duck typing for nodes (closes … by @Piyushrathoree in https://github.com/processing/p5.js/pull/8349
- Fix Camera.slerp for ortho by cloning projMatrix into uPMatrix when active by @nakednous in https://github.com/processing/p5.js/pull/8351
- fixed the issue with alpha blending - fixing blur remaining by @Piyushrathoree in https://github.com/processing/p5.js/pull/8354
New Contributors
- @tychedelia made their first contribution in https://github.com/processing/p5.js/pull/8023
- @Piyushrathoree made their first contribution in https://github.com/processing/p5.js/pull/8349
Full Changelog: https://github.com/processing/p5.js/compare/v2.1.2...v2.2.0-rc.3