Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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";
```