Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewrk/zig-vulkan-triangle
simple triangle displayed using vulkan, xcb, and zig
https://github.com/andrewrk/zig-vulkan-triangle
vulkan xcb zig
Last synced: 19 days ago
JSON representation
simple triangle displayed using vulkan, xcb, and zig
- Host: GitHub
- URL: https://github.com/andrewrk/zig-vulkan-triangle
- Owner: andrewrk
- License: mit
- Created: 2018-08-09T23:26:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-09T00:40:01.000Z (3 months ago)
- Last Synced: 2024-11-20T21:57:27.201Z (22 days ago)
- Topics: vulkan, xcb, zig
- Language: Zig
- Homepage:
- Size: 129 KB
- Stars: 116
- Watchers: 7
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - andrewrk/zig-vulkan-triangle
- awesome-zig - zig-vulkan-triangle🗒️simple triangle displayed using vulkan, glfw, and zig
README
# zig-vulkan-triangle
Example of using [vulkan-zig](https://github.com/Snektron/vulkan-zig) and
[shader_compiler](https://github.com/Games-by-Mason/shader_compiler) along with
libxcb to open a window and draw a triangle.![](https://i.imgur.com/pHEHvMU.png)
## Building and Running
```
zig build run
```## System Configuration
On NixOS, I had to add these to my shell:
```
buildInputs = [
vulkan-loader
vulkan-validation-layers
xorg.libxcb
];VK_LAYER_PATH="${pkgs.vulkan-validation-layers}/share/vulkan/explicit_layer.d";
```