Add D3D12 descriptor upload foothold

This commit is contained in:
Meta Vens 2026-05-09 12:35:55 +01:00
commit e672042a3e
5 changed files with 131 additions and 14 deletions

View file

@ -9,11 +9,12 @@ has feature parity.
- `--renderer d3d11` is the default renderer and owns the live scene.
- `--renderer d3d12` creates a D3D12 device, command queue, flip-discard
swapchain, RTV heap, per-backbuffer command allocators, command list,
fence-backed present loop, fullscreen root signature, and a smoke-test PSO.
fence-backed present loop, shader-visible CBV/SRV/UAV descriptor arena,
per-frame upload buffers, fullscreen root signature, and a smoke-test PSO.
- The D3D12 path currently draws a diagnostic fullscreen pass. It exists to
prove backend lifecycle, shader compilation, root signature creation, PSO
creation, render target binding, and draw submission before real scene passes
migrate.
prove backend lifecycle, shader compilation, root signature creation,
descriptor-table binding, per-frame constant upload, PSO creation, render
target binding, and draw submission before real scene passes migrate.
- `IAquariumRenderer` is the host boundary. The host should not learn backend
internals as the D3D12 renderer grows teeth.
@ -21,8 +22,8 @@ has feature parity.
1. Keep D3D11 as the visual reference.
2. Move shared renderer contracts behind explicit backend-neutral types.
3. Port descriptor heaps, upload/ring buffers, and pass
resource lifetime.
3. Replace the smoke-only descriptor/upload code with general ring-buffer and
resource lifetime helpers.
4. Port the existing passes in visible order: grid height, froxel volume, scene,
bloom, resolve, overlay/debug.
5. Build the transparent stochastic surface pipe in D3D12 once descriptor and