1.4 KiB
1.4 KiB
Vortice Spine
Aquarium starts from a thin native spine:
Platform.Win32Windowowns window creation and the message pump.Render.D3D12Rendererowns the D3D12 device, command queue, swapchain, frame resources, render targets, shaders, and present path.AquariumRuntimeowns simulation state and emits oneAquariumFrameper tick.OrbitCameraRigandGridFramepreserve the first invariant: the camera target is the Grid center, and Grid radius derives from zoom distance rather than pitch, yaw, or screen projection.
Why Vortice
Vortice gives direct access to D3D/DXGI without forcing an engine protocol on top. It is low ceremony enough to build the renderer Aquarium needs while keeping C# as the everyday working environment.
Current Renderer
The renderer owns the visible Aquarium frame:
- Camera and Grid constants come from the client runtime.
- A height-field pass renders the scalar field target from client brush data.
- A fullscreen D3D12 HLSL pass traces the background and height-field surface.
- Client-declared SDF proxy pipelines render Epiphany bodies into the shared scene targets.
- HDR bloom and presentation run before the swapchain is handed to the overlay.
- DirectWrite overlay text and debug UI draw after the scene pass.
No framework-owned deferred path or ambient light is hiding under the floor. When richer lighting returns, it enters through an Aquarium-owned renderer contract, not convenience globals.