An open API service indexing awesome lists of open source software.

https://github.com/jimblandy/wscript

wgpu scripting language.
https://github.com/jimblandy/wscript

Last synced: 3 months ago
JSON representation

wgpu scripting language.

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
```