Skip to content

Commit

Permalink
Merge pull request #72 from karl-zylinski/vulkan-triangle
Browse files Browse the repository at this point in the history
Vulkan triangle
  • Loading branch information
karl-zylinski authored Jan 14, 2025
2 parents c21372a + 0d0b412 commit 39b25bc
Show file tree
Hide file tree
Showing 6 changed files with 959 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ jobs:
odin check opengl/minimal_sdl2 $FLAGS
odin check vulkan/triangle_glfw $FLAGS
odin check metal/minimal_sdl2 $FLAGS
odin check metal/learn_metal/00-window $FLAGS
Expand Down
1 change: 1 addition & 0 deletions vulkan/triangle_glfw/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.spv
16 changes: 16 additions & 0 deletions vulkan/triangle_glfw/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Vulkan triangle example


By laytan, from: https://gist.github.com/laytan/ba57af3e5a59ab5cb2fca9e25bcfe262

You must compile the shaders before compiling this program:
```
glslc shader.vert -o vert.spv
glslc shader.frag -o frag.spv
```

glslc is part of shaderc, which you can find here: https://github.com/google/shaderc

This example uses glfw for window management.

![image](https://github.com/user-attachments/assets/c87b957c-8b1c-4c07-8b3e-b31fa4a98a53)
Loading

0 comments on commit 39b25bc

Please sign in to comment.