NOTE that this project is totally experimental and doesn't work AT ALL yet. All of this documentation and code's up as a placeholder as I explore.
To get this working, we'll need to get a Webpack build up by following https://usegpu.live/docs/guides-getting-started. Here's how to get this working with Shadow: https://code.thheller.com/blog/shadow-cljs/2020/05/08/how-about-webpack-now.html#option-2-js-provider-external, push experimental
Install usegpu.cljs
into your Clojurescript project using the instructions
at its Clojars page:
Require usegpu.core
in your namespace:
(ns my-app
(:require [usegpu.core :as gpu]))
See the project's interactive documentation notebook for more guides and examples.
The project's interactive documentation was generated using Nextjournal's Clerk. If you'd like to edit or play with the documentation, you'll need to install
Once this is done, run this command in one terminal window to build and serve the custom JS required by the notebook:
bb dev-notebook
In another terminal window, run
bb start-clerk
This should open a browser window to http://localhost:7777
with the contents
of the documentation notebook. Any edits you make to dev/usegpu/notebook.clj
will be picked up and displayed in the browser on save.
To support this work and my other open source projects, consider sponsoring me via my GitHub Sponsors page. Thank you to my current sponsors!
I'm grateful to Clojurists Together for financial support during this library's creation. Please consider becoming a member to support this work and projects like it.
Copyright © 2022 Sam Ritchie.
Distributed under the MIT License. See LICENSE.