Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thekorn/vulkan-experiments
vulkan experiments in zig
https://github.com/thekorn/vulkan-experiments
Last synced: about 2 months ago
JSON representation
vulkan experiments in zig
- Host: GitHub
- URL: https://github.com/thekorn/vulkan-experiments
- Owner: thekorn
- Created: 2024-06-27T15:52:41.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-30T21:19:49.000Z (7 months ago)
- Last Synced: 2024-07-04T17:25:21.722Z (7 months ago)
- Language: Zig
- Size: 1.33 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vulkan experiments
This is a playground to experiment with the vulkan api in zig.
currently it is drawing a triangle.![triangle](./doc/triangle.png)
## running
Easiest ist to spawn the nix shell, which includes all dependencies.
```bash
nix-shell
```within the shell, run the application
```bash
zig build run
```or, alternativly, run the application and debug print the vulkan api calls
```bash
VK_INSTANCE_LAYERS=VK_LAYER_LUNARG_api_dump zig build run
```Alternatively, use `vkconfig` for more fine grained layers config.
More verbose moltenVK logging
```bash
MVK_CONFIG_LOG_LEVEL=2 zig build run
```## code generations
In order to (re-)generate the c bindings, run
```bash
zig build -Dgenerate-bindings
```## ressources
- [Vulkan Tutorial](https://vulkan-tutorial.com/)
- [Vulkan youtube series by Codotaku](https://www.youtube.com/watch?v=Kf7BIPUUfsc) with [source code](https://github.com/CodesOtakuYT/vulkan_zig)
- [Vulkan & SDL2 by Codotaku](https://www.youtube.com/playlist?list=PLlKj-4rp1Gz2KfP0B0XN2a5i-WFjhyzrh) with [source](https://github.com/CodesOtakuYT/zig_vk)
- [zig + vulkan + glfw by andrewrk](https://github.com/andrewrk/zig-vulkan-triangle/tree/master)
- [vulkan game engine tutorials by Brendan Galea](https://www.youtube.com/playlist?list=PL8327DO66nu9qYVKLDmdLW_84-yE4auCR) with [source code](https://github.com/blurrypiano/littleVulkanEngine)