How packtpublishing/mastering-graphics-programming-with-vulkan works
This repository is a chapter-by-chapter Vulkan graphics programming project: each chapter presents an evolving rendering-engine example, with later chapters adding scene loading, frame-graph rendering, and advanced rendering techniques. The representative workflow is user input and camera control, scene/resource preparation, then rendering through command buffers to the GPU. The graph uses chapter 15 as the latest implementation snapshot. Several internal links are dashed because the available excerpts establish module references but do not show those modules’ call sites; README-described techniques are retained as capabilities without speculative implementation links.
Main entry points: main.cpp Chapter App · renderer.cpp Renderer · command_buffer.cpp Command Buffers · gpu_device.cpp GPU Device
Components 23
Application
- Chapter App
source/chapter15/main.cpp - Window Service
source/raptor/application/window.hpp - Input Actions
source/raptor/application/input.hpp - Game Camera
source/raptor/application/game_camera.hpp
Scene and Assets
- Async Loader
source/chapter15/graphics/asynchronous_loader.cpp - Resource Loading
source/chapter15/graphics/render_resources_loader.cpp - glTF Import
source/chapter15/graphics/gltf_scene.cpp - OBJ Import
source/chapter15/graphics/obj_scene.cpp - Scene Graph
source/chapter15/graphics/scene_graph.cpp - Render Scene
source/chapter15/graphics/render_scene.cpp
Rendering
- Frame Graph
source/chapter15/graphics/frame_graph.cpp - Renderer
source/chapter15/graphics/renderer.cpp - Command Buffers
source/chapter15/graphics/command_buffer.cpp - GPU Device
source/chapter15/graphics/gpu_device.cpp - Rendering Shaders
source/chapter15/shaders - SPIR-V Parser
source/chapter15/graphics/spirv_parser.cpp
Shared Support
- Resource Manager
source/raptor/foundation/resource_manager.hpp - Math Library
source/external/cglm/struct - Task Scheduler
source/external/enkiTS/TaskScheduler.h - ImGui
source/external/imgui/imgui.h - GPU Profiler
source/chapter15/graphics/gpu_profiler.cpp
Other components
- User
- Vulkan API
Connections 29
- User → Window Service: operates
- Window Service → Chapter App: provides events
source/chapter15/main.cpp - Chapter App → Input Actions: uses
source/chapter15/main.cpp - Chapter App → Game Camera: uses
source/chapter15/main.cpp - Chapter App → Async Loader: uses
source/chapter15/main.cpp - Chapter App → Resource Loading: uses
source/chapter15/main.cpp - Chapter App → glTF Import: uses
source/chapter15/main.cpp - Chapter App → OBJ Import: uses
source/chapter15/main.cpp - Chapter App → Scene Graph: uses
source/chapter15/main.cpp - Chapter App → Render Scene: uses
source/chapter15/main.cpp - Chapter App → Frame Graph: uses
source/chapter15/main.cpp - Chapter App → Renderer: uses
source/chapter15/main.cpp - Chapter App → Command Buffers: uses
source/chapter15/main.cpp - Chapter App → GPU Device: uses
source/chapter15/main.cpp - Chapter App → SPIR-V Parser: uses
source/chapter15/main.cpp - Chapter App → ImGui: uses
source/chapter15/main.cpp - Chapter App → GPU Profiler: uses
source/chapter15/main.cpp - Chapter App → Resource Manager: uses
source/chapter15/main.cpp - Resource Loading → Resource Manager: delegates loading
- Async Loader → Task Scheduler: may schedule tasks
- glTF Import → Scene Graph: populates
- OBJ Import → Scene Graph: populates
- Render Scene → Frame Graph: feeds passes
- Renderer → Command Buffers: records work
- Command Buffers → GPU Device: submits work
- GPU Device → Vulkan API: calls
- SPIR-V Parser → Rendering Shaders: parses
- Renderer → Rendering Shaders: executes
- Game Camera → Math Library: uses