This feature requires the p5.webgpu.js addon.
This API is experimental
Its behavior may change in a future version of p5.js.
Returns the default shader used for compute operations.
Calling buildComputeShader(shaderFunction) is equivalent to calling baseComputeShader().modify(shaderFunction).
Read the buildComputeShader reference or call baseComputeShader().inspectHooks() for more information on what you can do with the base compute shader.
Examples
Syntax
baseComputeShader()
Parameters
Returns
p5.Shader: The base compute shader.
Notice any errors or typos? Please let us know. Please feel free to edit src/core/p5.Renderer3D.js and open a pull request!