GPGPU state-stepping: maps minimal draw passes, shaders, GL resources, inputs, outputs. BYORenderer.
Aims to have loose drawing dependencies - for easier compatibility with any renderer which may rely on tracking the WebGL state (e.g: regl
.
To handle resource creation and rendering, pass an API object for the needed callbacks (parameters match the regl
API, but you may mix in whatever library you like).
The modules and many hooks may be used as given, or piecemeal, or overridden.
Install from npm
using:
npm install @epok.tech/gl-gpgpu
or:
yarn add @epok.tech/gl-gpgpu