webgpu_interop 0.9.1 copy "webgpu_interop: ^0.9.1" to clipboard
webgpu_interop: ^0.9.1 copied to clipboard

Platformweb

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.

1
likes
140
points
39
downloads

Publisher

unverified uploader

Weekly Downloads

dart js_interop for web applications. This library is created directly from WebIDL.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MPL-2.0 (license)

Dependencies

web

More

Packages that depend on webgpu_interop