https://github.com/brendan-duncan
In general, we recommend Forward(+) for targeting the web. But of course people can do whatever they want, if it works it works.
In general, we recommend Forward(+) for targeting the web. But of course people can do whatever they want, if it works it works.
@group(0) @binding(0) var<storage, read_write> b: array<f32>;
@compute @workgroup_size(1)
fn foo(@builtin(global_invocation_id) id: vec3<u32>) {
b[id.x] = b[id.x] * 2.0;
}`;
let b = [1, 2, 6];
let bg = {0: {0: b}};
WgslExec(shd).dispatch("foo", 3, bg);
expect(b, [2, 4, 12]);
@group(0) @binding(0) var<storage, read_write> b: array<f32>;
@compute @workgroup_size(1)
fn foo(@builtin(global_invocation_id) id: vec3<u32>) {
b[id.x] = b[id.x] * 2.0;
}`;
let b = [1, 2, 6];
let bg = {0: {0: b}};
WgslExec(shd).dispatch("foo", 3, bg);
expect(b, [2, 4, 12]);
Apparently it has low expectations of me.
Apparently it has low expectations of me.
Or Creative Commons: do whatever you want, I don't care.
I don't like the *GPL, but to each their own :-)
Or Creative Commons: do whatever you want, I don't care.
I don't like the *GPL, but to each their own :-)