How slackermanz/svk-engine works
VulkanAutomata is a C++/Vulkan GPU cellular-automata engine. Its principal workflow is to initialize a Vulkan context and device, load a compute shader and derive its descriptor resources, create a pipeline and command buffers, then submit GPU work using seeded image data. The sampled entry point shows setup, image barriers, command recording, queue submission, and synchronization; README identifies the product but documents few runtime details. Several implementation paths are unsampled, so the graph omits unverified connections and treats shaders as a documented product capability rather than claiming a specific dispatch path.
Main entry points: SlackAutomata.cpp Automata entry point · slack_engine.cpp Vulkan engine · slack_vulkan.cpp Vulkan resources · spirv_reflect.c SPIR-V reflection
Components 14
Application workflow
- Automata entry point
SlackAutomata.cpp - Image seeding
source/slack_tools.cpp - Output handling
source/slack_tools.cpp
Vulkan runtime
- Vulkan engine
source/slack_engine.cpp - Vulkan resources
source/slack_vulkan.cpp - Device queues
source/slack_vkinfo.cpp
Shader processing
- Compute shaders
shaders/cgol.comp - Shader variants
shaders - SPIR-V reflection
source/spirv_reflect.c - SPIR-V definitions
include/include/spirv/unified1/spirv.h
Runtime support
- Diagnostics
source/slack_debug.cpp - Utility functions
source/slack_utils.cpp
Other components
- User
- Vulkan runtime
Connections 12
- User → Automata entry point: starts
README.md - Automata entry point → Vulkan engine: initializes
SlackAutomata.cpp - Automata entry point → Image seeding: seeds image
SlackAutomata.cpp - Automata entry point → Compute shaders: loads shader
- Automata entry point → Output handling: writes output
- Vulkan engine → Vulkan resources: creates resources
source/slack_engine.cpp - Vulkan engine → SPIR-V reflection: reflects shader
source/slack_engine.cpp - SPIR-V reflection → SPIR-V definitions: uses definitions
- Vulkan engine → Device queues: queries memory
source/slack_engine.cpp - Vulkan resources → Vulkan runtime: calls
- Vulkan engine → Vulkan runtime: creates pipeline
source/slack_engine.cpp - Automata entry point → Vulkan runtime: submits work
SlackAutomata.cpp