Skip to content

OperationDarkside/VulkanFirstTriangle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vulkan Triangle

Minimal Vulkan application that renders a colored triangle using modern C++17 and helper libraries.

Requirements

  • CMake 3.15+
  • C++17 compiler
  • Vulkan SDK (includes glslc shader compiler)
  • GLFW 3.4 (auto-fetched if not found)

Dependencies (Auto-fetched)

  • volk: Vulkan meta-loader
  • vk-bootstrap: Vulkan initialization helper
  • VulkanMemoryAllocator: GPU memory management

Build

mkdir build && cd build cmake .. cmake --build .

Run

./bin/VulkanTriangle

Shaders are automatically compiled to bin/shaders/ during build.

Project Structure

  • main.cpp: Application entry point with Vulkan setup and render loop
  • triangle.vert: Vertex shader
  • triangle.frag: Fragment shader
  • CMakeLists.txt: Build configuration with shader compilation

Notes

  • Uses volk for dynamic Vulkan loading (no static linking)
  • RAII wrapper handles cleanup automatically
  • 2 frames in flight for optimal GPU utilization
  • Window resize not currently handled

Mostly vibe-coded with Claude Sonnet 4.5

About

C++ Vulkan Starter Repo with GLFW3, Volk, VkBootstrap and VMA

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published