From 94d720a3a510db6622fd1cc747228930d3ef446f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 26 May 2026 20:11:13 +0100 Subject: [PATCH] Record TubeField GPU rendering cut --- state/evidence.jsonl | 1 + state/map.yaml | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/state/evidence.jsonl b/state/evidence.jsonl index 1fe7503..aa2eb04 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -142,3 +142,4 @@ {"ts": "2026-05-26T16:42:17+01:00", "type": "implementation", "status": "blocked", "note": "Resource-backed Fensalir lowering now reaches planned packets but not visible rendering. Mimir audio spectrum/waveform surface intents use the source observation's mimir:resource:* key, so --fensalir-field-evidence-smoke produces one planned TubeField packet and two deferred non-backend claims. Fensalir's AquariumFieldScriptCompiler.CompileEvidence can bind declared resources in DSL; --fensalir-field-dsl-resource-smoke produces one planned TubeField packet with no deferred requests. The next blocker is engine-side D3D12 packet/resource resolution: Fensalir must import/alias GPU-resident structured buffers, textures, meshes, surface pages, and volumes and bind them to selected shader lowerings before planned packets can render visibly."} {"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."} diff --git a/state/map.yaml b/state/map.yaml index bfd8e11..9602347 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -307,9 +307,15 @@ accepted_design: the same runtime, not cross-process payload truth and not CPU payloads to 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. Visible - packet rendering is blocked on shader-side expansion and binding of those - GPU-resident slots, then honest texture/mesh/page/volume resolvers. + power/normalization, radius, ramp texture path, and emission scale. + Fensalir now has the first D3D12 TubeField rendering path: a compute shader + 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. - `config/perfect-machine.example.json` declares live owners, sensors, reservoir views, and runtime policy. - `src/Mimir.Runtime/Synchronization` now includes the Perfect Machine module