Skip to content

Add a toggle for the experimental WebGPU mode addon #4061

@davepagurek

Description

@davepagurek

Increasing Access

One of the first-party addons we build with p5.js is p5.webgpu.js. This is still experimental, but we're actively looking for people to test it out and give feedback and possibly contribute. In the next p5 version, we will have items in the reference that are exclusively for WebGPU mode. It would be great to give them an easy way to try it out via a toggle like we have for our compatibility addons or p5.sound.

Feature enhancement details

  • We should make sure to label it as experimental -- we do want people to test it out, but for the purposes of providing feedback and getting involved, as we expect APIs to change. We want to set the right expectations.
  • In the same way we let you link to a specific p5 version via a URL param, could we also let you start with the WebGPU addon enabled via URL param? This would help us be able to link to a starting sketch from the p5 website.
  • WebGPU mode also requires using async setup and await createCanvas(w, h, WEBGPU). Possibly overkill, but one could maybe try to change that in the code too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementImprovement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions