Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.03 KB

File metadata and controls

49 lines (33 loc) · 1.03 KB

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