How dyd-dev/dy_engine works
dy_engine is a data-oriented graphics framework: applications build scenes and submit them through a renderer, which records render work through a thin RHI to a selected graphics backend. The README also documents model/texture loading, binding-mode experiments, shadows, and progressively lower-level RHI access. The graph preserves those capabilities and the main internal layers. Backend and extension links are based on README descriptions and the source index; unsampled implementations are not claimed to have been inspected.
Main entry points: Renderer.cpp Renderer · RHI RHI contracts · RenderGraph.cpp Render graph · ICommandList.cpp Command recording
Components 18
Render front end
- Renderer
src/dyf/Renderer.cpp - Scene and materials
src/dyf/Scene.cpp - Draw packet building
src/dyf/DrawData.cpp - Lighting and shadows
src/dyf/Lighting.cpp
RHI and render path
- Render graph
src/RHI/RenderGraph.cpp - RHI contracts
src/Public/dyf/RHI - Resource management
src/RHI/Resources.cpp - Command recording
src/RHI/ICommandList.cpp
Graphics backends
- Vulkan backend
src/Backends/Vulkan/VulkanDevice.cpp - D3D12 backend
src/Backends/D3D12/D3D12Device.cpp - Metal backend
src/Backends/Metal/MetalDevice.h - Null backend
src/Backends/Null/NullDevice.cpp
Platform and extensions
- Model loading
src/Extend/Model - Model rendering
src/Extend/Model/ModelRenderer.cpp - Window and input
src/Platform/Window.cpp - Math foundation
src/Public/dyf/Math/Math.h - ImGui extension
src/Extend/ImGui/ImGui.cpp
Other components
- Application
Connections 19
- Application → Renderer: creates and uses
- Application → Scene and materials: builds
- Renderer → Scene and materials: renders
src/dyf/Renderer.cpp - Renderer → Draw packet building: builds packets
src/dyf/DrawData.cpp - Renderer → Lighting and shadows: renders shadows
- Renderer → Render graph: records passes
src/dyf/Renderer.cpp - Renderer → RHI contracts: uses interfaces
src/dyf/Renderer.cpp - Render graph → Command recording: executes passes
- Resource management → RHI contracts: implements resource APIs
src/RHI/Resources.cpp - Command recording → RHI contracts: implements command API
src/RHI/ICommandList.cpp - RHI contracts → Vulkan backend: implemented by
- RHI contracts → D3D12 backend: implemented by
- RHI contracts → Metal backend: implemented by
- RHI contracts → Null backend: implemented by
- Model loading → Model rendering: provides model data
- Model rendering → Renderer: feeds rendering
- Window and input → Renderer: provides window
- ImGui extension → RHI contracts: uses rendering APIs
src/Extend/ImGui/ImGui.cpp - Math foundation → Renderer: supports transforms
src/dyf/Renderer.cpp