How nicholasgallina/nemesis works
Nemesis is a Rust/Vulkan molecular visualization engine. The main workflow is launching the windowed app, loading PDB atom and bond data into GPU-ready molecule objects, then drawing them interactively with camera controls. The graph also preserves the separate OBJ game-object path and the Vulkan resource/rendering layers. Evidence is limited to the README and sampled source/index references; relationships not directly shown are omitted.
Main entry points: first_app.rs App Orchestration · nre_device.rs Vulkan Device · nre_pipeline.rs Graphics Pipelines · nre_renderer.rs Frame Renderer
Components 18
Application
- App Entry
src/main.rs - App Orchestration
src/first_app.rs - Window Events
src/nre_window.rs - Load Commands
src/nre_file.rs
Molecule and Scene
- PDB Parsing
src/nre_model.rs - Molecule GPU Model
src/nre_model.rs - Scene Objects
src/nre_game_object.rs
Vulkan Rendering
- Vulkan Device
src/nre_device.rs - Uniform Descriptors
src/nre_descriptor.rs - Graphics Pipelines
src/nre_pipeline.rs - Swap Chain
src/nre_swap_chain.rs - Frame Renderer
src/nre_renderer.rs - Atom and Bond Shaders
shaders
View Controls
- Camera Controller
src/nre_controller.rs - Perspective Camera
src/nre_camera.rs
Other components
- Viewer
- PDB Structure
models/molecule.pdb - OBJ Model
models/character.obj
Connections 24
- Viewer → App Entry: launches
README.md - App Entry → App Orchestration: starts
src/main.rs - App Orchestration → Window Events: creates
src/first_app.rs - App Orchestration → Vulkan Device: initializes
src/first_app.rs - App Orchestration → PDB Parsing: loads structure
src/first_app.rs - PDB Structure → App Orchestration: default input
src/first_app.rs - App Orchestration → Molecule GPU Model: builds molecule
src/first_app.rs - App Orchestration → Scene Objects: builds OBJ object
src/first_app.rs - OBJ Model → App Orchestration: default model
src/first_app.rs - App Orchestration → Load Commands: handles load command
src/first_app.rs - App Orchestration → Camera Controller: updates controls
src/first_app.rs - Camera Controller → Perspective Camera: updates pose
src/nre_controller.rs - App Orchestration → Perspective Camera: reads matrices
src/first_app.rs - App Orchestration → Uniform Descriptors: sets uniforms
src/first_app.rs - App Orchestration → Frame Renderer: records frames
src/first_app.rs - App Orchestration → Graphics Pipelines: binds pipelines
src/first_app.rs - Molecule GPU Model → Vulkan Device: allocates buffers
src/nre_model.rs - Uniform Descriptors → Vulkan Device: allocates resources
src/nre_descriptor.rs - Graphics Pipelines → Vulkan Device: creates pipeline
src/nre_pipeline.rs - Frame Renderer → Swap Chain: acquires and presents
src/nre_renderer.rs - Frame Renderer → Graphics Pipelines: recreates pipeline
src/nre_renderer.rs - Swap Chain → Vulkan Device: creates render resources
src/nre_swap_chain.rs - Graphics Pipelines → Atom and Bond Shaders: loads shader modules
- App Orchestration → Molecule GPU Model: draws instances
src/first_app.rs