Skip to content

dmbfm/zig-metal-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zig-build-gen

This is the code generator used to genereate the metal api bindings found at https://github.com/dmbfm/zig-metal.

The generator uses libclang to parse the Metal API's objective-c headers and generate the zig bindings. Currently the path to libclang is hard-coded in the build.zig file, so you shoud replace the line:

    exe.addLibraryPath(.{ .path = "/opt/homebrew/opt/llvm/lib" });

to whatever path makes sense for you.

Running zig build run will output the contents of the binding, i.e., zig build run > out.zig will create a out.zig file with usable bindgins.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published