https://github.com/jimblandy/wscript
wgpu scripting language.
https://github.com/jimblandy/wscript
Last synced: 3 months ago
JSON representation
wgpu scripting language.
- Host: GitHub
- URL: https://github.com/jimblandy/wscript
- Owner: jimblandy
- Created: 2022-09-01T00:04:46.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-29T03:34:02.000Z (about 2 years ago)
- Last Synced: 2025-03-17T16:03:28.462Z (3 months ago)
- Language: Rust
- Size: 179 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A Scripting Language for `wgpu`
This is a language for writing quick tests and experiments for the
[`wgpu`](https://github.com/gfx-rs/wgpu) GPU crate.For example:
```text
module """@group(0) @binding(0)
var buf: array;@compute
@workgroup_size(64)
fn add_one(@builtin(global_invocation_id) i: i32) {
buf[i] += 1;
}init buf = 0..4096
dispatch add_one (64,64)
check buf = 1 .. 4097
```