Skip to content

stoneberry-webgpu/stoneberry

Repository files navigation

Stoneberry is a collection of core shaders for WebGPU. Prefix Scan, Reduce, Histogram, etc.

Using Stoneberry

Documentation and examples of use are available at stoneberry.dev

Building Stoneberry

The core library is in packages/stoneberry.

To setup and run tests:

$ cd packages/stoneberry
$ pnpm i 
$ pnpm cypress-component

Updating Documentation

The documentation site is in packages/doc-site.

To setup and display documentation locally:

$ cd packages/doc-site
$ pnpm i 
$ pnpm start

Documentation Examples

The documentation code examples are packages/examples

To setup and run a code example locally:

$ cd packages/examples
$ pnpm i 
$ pnpm dev

Running benchmarks

The benchmarks project is in packages/bench.

To run the benchmark script:

$ cd packages/bench
$ pnpm i
$ pnpm bench

results are appended to the file: benchmarks.csv.