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

xubaiw/deno-wgpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Releases

No releases published

Packages

No packages published