Wgpu-native binding for Deno.
Note: The polyfill part is not implemented. See issue #3.
deno-wgpu
is not published to deno.land
. You can import it from denopkg.com
:
import { createInstance } from "https://denopkg.com/xubaiw/deno-wgpu/mod.ts";
const instance = createInstance();
const [, adapter] = await instance.requestAdapter();
// Further usage...
A deno doc generated documentation can be found here. However, there is almost no comments.
Also see ./examples/compute.ts
for the collatz example.
- wgpu-native: awesome WebGPU implementation, C headers and prebuilt binaries
- ext/webgpu: (previous) Deno official wgpu binding implementation
- libclang: for automatic FFI generation (metagen also helps)