@footgun/cobalt

0.3.1 • Public • Published

Cobalt

A chunk of cobalt

A 2D WebGpu renderer.

Goals

  • pure WebGpu: no fallbacks to WebGl or canvas
  • minimal abstractions: provide very light abstractions over what webgpu provides
  • gl-matrix/wgpu-matrix compatible: use primitives compatible with how webgpu and webgl store rendering data (float32 arrays)
  • works in both browsers and node+SDL
  • GC friendly: does not thrash the garbage collector. uses API design that won't allocate memory all over the place
  • back-to-front z-indexing

install

npm install @footgun/cobalt

Runnable demos are available in examples/.

Package Sidebar

Install

npm i @footgun/cobalt

Weekly Downloads

11

Version

0.3.1

License

MIT

Unpacked Size

1.23 MB

Total Files

129

Last publish

Collaborators

  • mreinstein