Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (17 loc) · 1.04 KB

README.md

File metadata and controls

28 lines (17 loc) · 1.04 KB

deno-wgpu

Wgpu-native binding for Deno.

Note: The polyfill part is not implemented. See issue #3.

Usage

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.

Credits

  • 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)