Increasing access
One of the benefits of WebGPU compute shaders is that it can be a faster way to do things like simulations or calculations. Often that's paired with rendering, but sometimes it'd be helpful to be able to get the raw numbers out as a result. Currently, there's not a good way to do that, so we're limiting the use of compute shaders to rendering applications only.
Most appropriate sub-area of p5.js?
Feature enhancement details
p5.StorageBuffer could get a method like .get() or maybe .read() that you'd have to await and would pull its data down from the GPU and unpack it into an array of the same format that it was initialized with.
Increasing access
One of the benefits of WebGPU compute shaders is that it can be a faster way to do things like simulations or calculations. Often that's paired with rendering, but sometimes it'd be helpful to be able to get the raw numbers out as a result. Currently, there's not a good way to do that, so we're limiting the use of compute shaders to rendering applications only.
Most appropriate sub-area of p5.js?
Feature enhancement details
p5.StorageBuffercould get a method like.get()or maybe.read()that you'd have toawaitand would pull its data down from the GPU and unpack it into an array of the same format that it was initialized with.