From dd4f65277a189ed39f357e0433279850510e5d1d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 26 May 2026 22:50:05 +0100 Subject: [PATCH] Record TubeField generated mesh binding --- docs/fensalir-rendering-rebuild-migration.md | 7 +++++-- docs/implementation-plan.md | 12 ++++++++---- notes/current-system-map.md | 5 ++++- state/evidence.jsonl | 1 + state/map.yaml | 3 +++ 5 files changed, 21 insertions(+), 7 deletions(-) diff --git a/docs/fensalir-rendering-rebuild-migration.md b/docs/fensalir-rendering-rebuild-migration.md index eee1a84..c7248f3 100644 --- a/docs/fensalir-rendering-rebuild-migration.md +++ b/docs/fensalir-rendering-rebuild-migration.md @@ -217,8 +217,11 @@ lowerings that interpret mesh/page/volume resources as geometry, height/SDF/ material pages, or density/extinction/SDF3D domains. Mesh layout authority is split by source: imported/user meshes use the standard `PositionNormalUvColor` layout, while generated meshes can be `PipelinePrivate` and leave byte -semantics to their selected lowering. That is engine ownership, not a reason -for Mimir to create a parallel renderer. +semantics to their selected lowering. TubeField now uses that generated-mesh +lane explicitly: compute emits private geometry/indirect buffers and render +binds them as a pipeline-private generated mesh before applying TubeField +material state. That is engine ownership, not a reason for Mimir to create a +parallel renderer. ### 3. Calibration Constraint diff --git a/docs/implementation-plan.md b/docs/implementation-plan.md index e006b10..8eea64b 100644 --- a/docs/implementation-plan.md +++ b/docs/implementation-plan.md @@ -188,7 +188,10 @@ a named invariant that the native runtime cannot protect yet. lowerings exist. Mesh layout authority is split by source: imported/user meshes use the standard `PositionNormalUvColor` vertex layout, while generated meshes declare `PipelinePrivate` and let the selected lowering own the minimal - bytes it emits and consumes. + bytes it emits and consumes. TubeField is the first explicit generated-mesh + render consumer: its compute path emits private vertex/index/indirect buffers, + and render binds them as a `D3D12PipelinePrivateGeneratedMesh` before applying + TubeField source/ramp/material state. - `MimirRuntime` queues bioacoustic timeline PCM through Fensalir audio when the active timing witness is allowed. `MimirAudioSynchronizationSettings.Mode` selects `chirp-only`, `passive`, or `hybrid`; passive disables active @@ -333,9 +336,10 @@ a named invariant that the native runtime cannot protect yet. resource-backed claims against those resources. The next engine cuts are selected render lowerings that consume those resources as mesh geometry, height/SDF/material pages, and density/extinction/SDF3D volumes. The generic - imported mesh ABI is no longer the blocker; the next renderer decision is - which selected generated/imported mesh lowering and material path should be - implemented first. + imported mesh ABI is no longer the blocker; TubeField now occupies the first + generated-mesh lowering lane. The next renderer decisions are how to expose + additional generated mesh producers and which page/volume/material lowering + should follow. 9. Move mic alignment, room suppression, voice separation, spatialization, and stem generation into Faust/native DSP. 10. Keep the OBS bridge witness ledger as evidence before expanding receiver diff --git a/notes/current-system-map.md b/notes/current-system-map.md index 51e2676..6650a6f 100644 --- a/notes/current-system-map.md +++ b/notes/current-system-map.md @@ -345,7 +345,10 @@ consume mesh/page/volume resources as geometry, height/SDF/material pages, or density/extinction/SDF3D domains. Mesh layout authority is split by source: imported/user meshes use the standard `PositionNormalUvColor` layout, and generated meshes can be `PipelinePrivate` so each lowering owns the bytes it -emits and consumes. +emits and consumes. TubeField is the first concrete generated-mesh consumer: +its compute pass emits private vertex/index/indirect buffers and render binds +them as `D3D12PipelinePrivateGeneratedMesh` before applying source/ramp/material +state. The current teardown/migration map is `docs/fensalir-rendering-rebuild-migration.md`, paired with Fensalir's diff --git a/state/evidence.jsonl b/state/evidence.jsonl index 79f08f0..06298dd 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -151,3 +151,4 @@ {"ts": "2026-05-26T21:24:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir now resolves Mesh field resources as one package: Mesh.Vertices and Mesh.Indices describe the GPU vertex/index buffers, with topology, index format, bounds, submesh count, and version on the package. The DSL accepts `mesh id=... key=... vertices=... vertexStride=... indices=... indexFormat=... topology=...`, and D3D12FieldResourceRegistry allocates/reuses the GPU-resident buffers under the mesh resource key. This is resolver authority only; mesh draw/material lowerings remain future work. Fensalir build/tests/headless reload passed."} {"ts": "2026-05-26T21:42:00+01:00", "type": "implementation", "status": "blocked", "note": "Fensalir's evidence DSL can now plan generic resource-backed claims with `claim id=... resource=... encoding=... layer=...`, so Mesh, SurfacePage, and VolumeTexture resources reach backend packet planning. The remaining renderer cut is blocked on selected render-lowering contracts: Mesh drawing needs explicit vertex attribute/material semantics because count/stride/index format only describe buffer shape, not how bytes become position, normal, uv, color, transform, or material."} {"ts": "2026-05-26T21:58:00+01:00", "type": "decision", "status": "ok", "note": "Clarified Fensalir Mesh layout authority: imported/user-facing FBX/OBJ-style meshes use the standard PositionNormalUvColor vertex layout, while generated meshes declare PipelinePrivate and let their selected lowering own the exact minimal byte layout. The generic mesh ABI is no longer the blocker; next renderer work should choose the first selected mesh/page/volume lowering and material path."} +{"ts": "2026-05-26T22:49:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir TubeField now renders through the first explicit pipeline-private generated mesh lane. Compute owns the private D3D12TubeFieldVertex/index/indirect argument layout; render binds those buffers as a D3D12PipelinePrivateGeneratedMesh before applying TubeField source/ramp/material root bindings and ExecuteIndirect. This follows the generated-mesh option without adding a public imported mesh renderer."} diff --git a/state/map.yaml b/state/map.yaml index 3f58489..001d1cf 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -339,6 +339,9 @@ accepted_design: engine work. Mesh layout authority is split: imported/user-facing meshes use the standard `PositionNormalUvColor` vertex layout, while generated meshes can be `PipelinePrivate` and let the lowering own the minimal bytes. + TubeField now renders through the first explicit pipeline-private generated + mesh binding: compute owns the private vertex/index/indirect layout, and + render binds that generated mesh before applying TubeField material state. - `config/perfect-machine.example.json` declares live owners, sensors, reservoir views, and runtime policy. - `src/Mimir.Runtime/Synchronization` now includes the Perfect Machine module