webgpu_interop 0.9.1
webgpu_interop: ^0.9.1 copied to clipboard
dart js_interop for web applications. This library is created directly from WebIDL.
webgpu_interop #
Dart js_interop for web applications. This library is created directly from WebIDL with web_generator, latest SDK and patched.
Roadmap #
- ✅ it works
- ✅ script for IDL update
- ✅ compute example
- ✅ cube example
Getting started #
Instal Dart SDK, editor with Dart intellisense and linting, it will be much easier to adopt samples.
Usage #
Create new web project, install package and activate webdev
dart create -t web quickstart
dart pub add webgpu_interop
dart pub global activate webdev
Add
webdev serve web:3000 --debug --auto restart
Adopt any WebGPU sample to Dart. If something will be wrong with webdev
try to deactivate it or remove .dart_tool
.
Contributing and testing #
Run examples in repo and add new one
dart pub global activate webdev
webdev serve example:3000 --release --auto restart
Change bindings or update with new WebIDL
cd generator
./gen.sh
License #
Business-friendly license but you need to publish modifications. You can simply fork this repo, add it as submodule in your project and push your changes there.