Shared renderer modules, D3D12 refit onto them #30
No assignees
Labels
No labels
area/build
area/content
area/editor
area/engine
area/graphics
area/platform
area/repo-wide
area/tests
area/tools
bug
optional
roadmap
size/L
size/M
size/S
No project
No milestone
Blocks
Depends on
#31 Vulkan device, loader, memory and swapchain
UnflavoredMeson/Primal_Plus_Plus
#33 Gpass on both backends, one frame for every surface
UnflavoredMeson/Primal_Plus_Plus
#44 The engine's parts: mesh, lights, camera
UnflavoredMeson/Primal_Plus_Plus
#20 Transforms as components with a hierarchy
UnflavoredMeson/Primal_Plus_Plus
#23 Render components
UnflavoredMeson/Primal_Plus_Plus
#25 Single sources for shader constants, bindings and layouts
UnflavoredMeson/Primal_Plus_Plus
#29 PrimalImport command-line importer
UnflavoredMeson/Primal_Plus_Plus
Reference
No Branch/Tag specified
Notifications
1 participant
Due date
No due date set.
Reference
UnflavoredMeson/Primal_Plus_Plus#30
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The fork wrote Vulkan as a copy of D3D12 and ended at 44% identical code, then spent the renderer issue merging it. Moving the API-free code out of D3D12 first, while only D3D12 exists, means Vulkan is written against shared code and the picture stays testable.
Decided
Engine/Graphics/(headers +.cpp, not a module); each backend keeps its resources and records its passes. A render graph and a thin RHI are later issues (S12).graphics::scene::prepare()once a frame builds the light sets and one backend render item perMeshRendererentity.Read first
Engine/Graphics/Direct3D12/D3D12Camera.cpp,D3D12Light.cpp,D3D12Gpass.cpp,Engine/Graphics/Renderer.honmaster.Steps
Engine/Graphics/Camera.*; D3D12 uses it. Picture unchanged.Engine/Graphics/Lights.*, with D3D12's GPU buffer derived from a sharedLightBuffers.graphics::scene::prepare()readingMeshRenderer, the lights andCamera; remove the renderer's own light/camera/render-item API.Done when
Claude can help with
Learn