Record compute-owned reservoir history

This commit is contained in:
Meta Vens 2026-05-28 22:18:18 +01:00
commit 20d126c93b
4 changed files with 14 additions and 5 deletions

View file

@ -331,8 +331,10 @@ a named invariant that the native runtime cannot protect yet.
spatiotemporal reconstruction. The shared field candidate inlet now keeps four
fixed candidate slots per pixel, so TubeField and later producers compete
through the same resolver-owned budget instead of naming a private winner.
Reservoir presentation history is now a ping-ponged structured buffer with
the same four rows per pixel, not a set of pixel-history MRTs.
Reservoir history update is now a shared Fensalir compute pass over a
ping-ponged structured buffer with the same four rows per pixel; it emits the
resolved HDR field texture that bloom and presentation consume. The
presentation shader is no longer a hidden history/TAA owner.
TubeField render now binds the engine
blue-noise texture and jitters its tube-local SDF sample inside the proxy
fragment shader, then lets the scene depth buffer resolve opaque generated

View file

@ -505,6 +505,10 @@ data into a Fensalir-owned GPU structured buffer before TubeField compute reads
it. TubeField writes stable field ids, real tube normals, coverage/confidence,
and domain-validity guide data into the same scene metadata/control/reservoir
guide targets consumed by reservoir resolve for spatiotemporal reconstruction.
Fensalir's shared reservoir history update now runs as a compute pass over
four structured rows per pixel and emits the resolved HDR field texture for
bloom/presentation, so the presentation shader is no longer a hidden history
owner.
TubeField render also binds the engine blue-noise texture, jitters the
tube-local SDF sample in the proxy fragment shader, and uses scene depth so
opaque field geometry resolves by nearest generated surface instead of draw

View file

@ -222,3 +222,4 @@
{"ts": "2026-05-28T21:01:32+01:00", "type": "implementation", "status": "ok", "note": "Fensalir reservoir presentation history moved from single-sample pixel-history MRTs to ping-ponged structured reservoir-history buffers with four rows per pixel. Presentation resolve now reads current shared candidates plus previous structured history rows, validates by field id/travel/normal/coverage/reservoir guide, writes structured history rows, and outputs only final color to the backbuffer."}
{"ts": "2026-05-28T21:08:06+01:00", "type": "verification", "status": "ok", "note": "Structured reservoir history verified after root-signature cleanup: Fensalir and Mimir builds passed, --mimir-spectrum-upload-smoke passed, and headless D3D12 capture succeeded at artifacts/runtime/structured-reservoir-history-clean-root-smoke.png with renderTargets=25, confirming the old history MRTs are no longer allocated."}
{"ts": "2026-05-28T21:10:02+01:00", "type": "correction", "status": "ok", "note": "Corrected structured reservoir history admission so producer candidates use all four shared rows per pixel. Scene fallback only occupies row 0 when no shared candidate exists. Verified with Fensalir/Mimir builds, spectrum upload smoke, and headless capture artifacts/runtime/structured-reservoir-history-four-row-smoke.png."}
{"ts": "2026-05-28T21:25:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir reservoir history update/reuse now runs in a shared compute pass, not the presentation shader. The pass writes the next four structured rows per pixel and emits a resolved HDR field texture consumed by bloom/presentation. Verified with Fensalir and Mimir builds, --mimir-spectrum-upload-smoke, and headless synthetic spectrum capture artifacts/runtime/reservoir-history-compute-spectrum-smoke.png."}

View file

@ -465,9 +465,11 @@ accepted_design:
guide targets consumed by reservoir resolve for spatiotemporal
reconstruction. The shared field candidate inlet now keeps four fixed slots
per pixel, so producer-specific paths compete inside a resolver-owned budget
instead of choosing private winners. Reservoir presentation history is now a
ping-ponged structured buffer with the same four rows per pixel, not
pixel-history MRTs. TubeField render now binds the engine blue-noise texture,
instead of choosing private winners. Reservoir history update is now a
shared Fensalir compute pass over a ping-ponged structured buffer with the
same four rows per pixel; it emits the resolved HDR field texture that
bloom and presentation consume. The presentation shader is no longer a
hidden history/TAA owner. TubeField render now binds the engine blue-noise texture,
jitters its tube-local SDF sample inside the proxy fragment shader, and
uses scene depth so opaque generated field geometry resolves by nearest
surface rather than draw order. The current visual still exposes generated