Skip to content

SogoCZE/jai_wgpu_native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WGPU Native bindings for Jai

Bindings for wgpu-native for Jai. You can use prebuild and pregenerated bindings or compile and generate bindings yourself.

Use prebuilt and pregenerated bindings

To use simply create local modules folder in your Jai project and copy here the wgpu folder. Then import wgpu and use it. You can look at the hello_triangle example.

Build and generate yourself

  1. You need to have installed Rust (to be able compile wgpu-native).
  2. Run jai generate.jai in wgpu folder to build and generate bindings. Use - -debug flag to build debug version of the libraries.

TODO

  • iOS
  • Android
  • Properly test Linux
  • idiomatic wrapper around raw bindings