Record TubeField pixel material cut

This commit is contained in:
Meta Vens 2026-05-26 20:22:13 +01:00
commit 03a8f148a0
2 changed files with 11 additions and 6 deletions

View file

@ -143,3 +143,4 @@
{"ts": "2026-05-26T17:29:30+01:00", "type": "correction", "status": "ok", "note": "Corrected the resource-boundary model: Mimir is a client running inside the Fensalir runtime, so Mimir-declared buffers are Fensalir resource declarations, not cross-process payload truth. Fensalir now has the first D3D12 field resource registry cut for declared structured/curve buffers: valid declarations allocate/reuse/retire engine-owned GPU slots under the resource key, and duplicate resource keys are validation errors. Visible rendering is now blocked on TubeField shader binding for resolved slots, not on deciding who owns the buffers. Texture, mesh, surface-page, and volume resource kinds remain future Fensalir resolver cuts."}
{"ts": "2026-05-26T18:50:34+01:00", "type": "correction", "status": "ok", "note": "Tightened the resource invariant: rendering buffers should move to GPU residency ASAP and stay there, with Fensalir passing handles/SRVs/UAVs between compute and render lowerings instead of copying samples through CPU. Fensalir's TubeField DSL now describes 2D rolling Float32 buffers as Catmull-Rom XY tubes with modulo column addressing, amplitude power/normalization, radius scaling, ramp texture path, and emission scale. D3D12 shared structured/curve resources import by GPU handle or stay unsupported; Fensalir only allocates a GPU slot when it is the producer. Visible rendering still needs shader-side TubeField expansion/binding over the GPU slot."}
{"ts": "2026-05-26T20:13:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir now has the first D3D12 TubeField rendering path for Mimir-declared rolling float buffers: compute shader expansion binds the resolved GPU sample buffer read-only, emits endpoint-clamped Catmull-Rom tube envelopes into fixed-budget vertex/index UAVs, honors declared sample stride with byte-address loads, draws opaque field geometry through the spline SDF pipeline, and reports requested/dispatched/truncated segment counts. Mimir build and both Fensalir field evidence smokes pass; remaining cuts are per-pixel source-row material sampling, ramp texture binding/fallback, indirect draw packets, and non-buffer resolvers."}
{"ts": "2026-05-26T20:22:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir TubeField rendering now includes the pixel-material side Mimir asked for: compute expansion records one draw batch per lowering, and the TubeField pixel shader binds the matching source buffer/constants and resamples the rolling buffer per pixel by column+spline coordinate using the cheap 5-tap path. Initial material is opaque field geometry with fallback black-to-warm ramp, squared normalized emission, and fake Fresnel center-bright/edge-dark shaping. Real blackbody ramp texture binding, indirect draw packets, and non-buffer resolvers remain future cuts. Headless Fensalir dev reload, Aquarium.Engine.Tests, Mimir build, and both field smokes passed."}

View file

@ -308,14 +308,18 @@ accepted_design:
copy back and forth. The TubeField DSL can now express a 2D rolling float
buffer as Catmull-Rom XY tubes with modulo column addressing, amplitude
power/normalization, radius, ramp texture path, and emission scale.
Fensalir now has the first D3D12 TubeField rendering path: a compute shader
Fensalir now has the first D3D12 TubeField compute/render lowering: compute
binds the declared rolling sample buffer as read-only GPU memory, expands
endpoint-clamped Catmull-Rom tube envelopes into fixed-budget vertex/index
UAVs, honors declared float sample stride with byte-address loads, draws
opaque field geometry through the spline SDF pipeline, and reports
geometry-budget overflow. Remaining visual cuts are per-pixel source-row
material sampling, ramp texture binding/fallback, indirect draw packets,
then honest texture/mesh/page/volume resolvers.
UAVs, honors declared float sample stride with byte-address loads, records
one draw batch per lowering, then the TubeField pixel shader binds the
matching source buffer and resamples material per pixel by column+spline
coordinate with the cheap 5-tap approximation. The first material is opaque
field geometry with fallback black-to-warm ramp, squared normalized
emission, fake Fresnel center-bright/edge-dark shaping, and
geometry-budget overflow reporting. Remaining visual cuts are real ramp
texture binding, indirect draw packets, then honest texture/mesh/page/
volume resolvers.
- `config/perfect-machine.example.json` declares live owners, sensors,
reservoir views, and runtime policy.
- `src/Mimir.Runtime/Synchronization` now includes the Perfect Machine module