Simple Vulkan compute shader library written in Zig
- Zig 98.8%
- Nix 1.2%
| examples | Bump to zig 0.16 | |
| src | Bump to zig 0.16 | |
| .gitignore | Bump to zig 0.16 | |
| build.zig | Update build | |
| build.zig.zon | Bump to zig 0.16 | |
| flake.lock | Bump to zig 0.16 | |
| flake.nix | Bump to zig 0.16 | |
| LICENSE | Add info files | |
| README.md | Rename | |
zcompute
Simple Vulkan library for running compute shaders on the GPU
Using
You will need:
-
Zig compiler (0.15.2)
-
Vulkan SDK
-
slangc (Slang shader compiler)
Fetch:
zig fetch --save git+https://github.com/Pivok7/zcompute
Inside build.zig:
constzcompute_dep=b.dependency("zcompute",.{.target=target,.optimize=optimize,});exe.root_module.addImport("zcompute",zcompute_dep.module("zcompute"));For examples check out the 'examples' folder
Third party libraries used in this project
- vulkan-zig: https://github.com/Snektron/vulkan-zig.git
Licensed under the MIT License.