diff --git a/docs/fensalir-rendering-rebuild-migration.md b/docs/fensalir-rendering-rebuild-migration.md index 58d8749..06a028b 100644 --- a/docs/fensalir-rendering-rebuild-migration.md +++ b/docs/fensalir-rendering-rebuild-migration.md @@ -206,10 +206,14 @@ shared structured/curve buffers import/alias GPU-resident resources by handle, while Fensalir-created resources allocate GPU slots only when Fensalir is the producer. The DSL can describe a 2D rolling float buffer as Catmull-Rom XY tubes with modulo column addressing, amplitude power/normalization, radius, -ramp texture path, and emission scale. Current blocker for visible rendering is -shader binding/expansion: selected `TubeField` packets must consume those -resolved GPU slots directly. Texture, mesh, surface-page, and volume resolvers -remain explicit future engine cuts. That is engine ownership, not a reason for +ramp texture path, and emission scale. TubeField now consumes those resources +through a GPU compute/render path, local Texture2D resources can bind as ramps, +SurfacePage and VolumeTexture declarations resolve into shader-readable GPU +textures, and Mesh declarations package `Mesh.Vertices`/`Mesh.Indices` GPU +buffer shape under one resource key. Current blocker for the remaining visual +surface is not resource ownership; it is the selected render lowerings that +interpret mesh/page/volume resources as geometry, height/SDF/material pages, or +density/extinction/SDF3D domains. 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 539e05e..fa97b0f 100644 --- a/docs/implementation-plan.md +++ b/docs/implementation-plan.md @@ -177,8 +177,12 @@ a named invariant that the native runtime cannot protect yet. consume those pages as height/SDF/material domains remain future engine cuts. VolumeTexture resources can now be declared and resolved as GPU-resident shader-readable 3D textures for future density/extinction/SDF3D lowerings. - Mesh remains unresolved because it needs an explicit vertex/index ownership - contract rather than one scalar texture shape. + Mesh resources now have that explicit ownership contract: `Mesh.Vertices` and + `Mesh.Indices` package the vertex/index GPU buffers with topology, index + format, bounds, submesh count, and version. The Fensalir DSL can declare a + mesh package, and the D3D12 registry allocates/reuses its GPU-resident vertex + and index buffers under the mesh resource key. This is resolver authority + only; mesh draw/material lowerings remain future engine work. - `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 @@ -317,10 +321,11 @@ a named invariant that the native runtime cannot protect yet. accumulation from stable frame budgets. Do not route this dashboard back through fractal point splats. 8. Move GPU feature extraction, fusion, material fitting, render budgeting, and - Spout2 publication into Fensalir. The next unresolved engine cut is the - D3D12 packet/resource resolver: planned field packets need imported - GPU-resident resource bindings for structured buffers, textures, meshes, - surface pages, and volumes before they can become shader dispatch/draw work. + Spout2 publication into Fensalir. The D3D12 packet/resource resolver now has + first authority for structured buffers, local textures, surface pages, + volume textures, and mesh packages. The next engine cuts are selected render + lowerings that consume those resources as mesh geometry, height/SDF/material + pages, and density/extinction/SDF3D volumes. 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 9ba228f..aa4b4c8 100644 --- a/notes/current-system-map.md +++ b/notes/current-system-map.md @@ -335,9 +335,13 @@ cut for structured/curve buffers: it imports shared GPU buffers by handle and allocates engine-owned GPU slots only for Fensalir-produced resources. The DSL can describe a 2D rolling float buffer as Catmull-Rom XY tubes with modulo column addressing, amplitude power/normalization, radius, ramp texture path, and -emission scale. The next blocker is shader-side packet binding/expansion for -those GPU-resident TubeField resources, plus later texture/mesh/page/volume -resolvers. +emission scale. Fensalir now resolves the first non-buffer resource family too: +Texture2D local assets bind as TubeField ramps, surface pages and volume +textures allocate shader-readable GPU textures, and mesh packages own +`Mesh.Vertices`/`Mesh.Indices` GPU buffer shape under one resource key. The +next blocker is no longer resolver ownership; it is selected render lowerings +that consume mesh/page/volume resources as geometry, height/SDF/material pages, +or density/extinction/SDF3D domains. 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 84339c9..af2359a 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -148,3 +148,4 @@ {"ts": "2026-05-26T20:59:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir TubeField compute now emits GPU-resident D3D12 indirect draw argument packets. Render still binds one batch at a time because source/ramp material root bindings differ, but draw count/start index authority now comes from the compute-emitted packet and render uses ExecuteIndirect. Fensalir build/tests/headless reload, Mimir build, and both field smokes passed. Remaining renderer migration cuts are mesh, surface-page, and volume resource resolvers."} {"ts": "2026-05-26T21:05:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir now resolves SurfacePage field resources. Contracts and DSL can declare GPU-resident 2D surface pages with dimensions, format, version, and optional local source; D3D12FieldResourceRegistry allocates empty shader-readable page textures or lazily loads local source-backed pages. This creates resource authority for future Height/SDF/material lowerings, but does not yet make a surface-page render lowering. Fensalir build/tests/headless reload, Mimir build, and both field smokes passed."} {"ts": "2026-05-26T21:11:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir now resolves VolumeTexture field resources. Contracts and DSL can declare GPU-resident 3D textures with width/height/depth/format/version, and D3D12FieldResourceRegistry allocates shader-readable Texture3D resources for future density/extinction/SDF3D lowerings. This is resource authority only, not a volume render lowering. Fensalir build/tests/headless reload, Mimir build, and both field smokes passed. Mesh remains the resolver that needs a real vertex/index ownership contract."} +{"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."} diff --git a/state/map.yaml b/state/map.yaml index 74dffdd..62a9c40 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -323,14 +323,18 @@ accepted_design: Fresnel center-bright/edge-dark shaping, and geometry-budget overflow reporting. TubeField compute now emits GPU-resident D3D12 indirect draw argument packets, and render executes those packets after binding each - batch's source/ramp material state. Remaining visual cuts are honest mesh/ - page/volume resolvers. SurfacePage resources now have the first Fensalir + batch's source/ramp material state. SurfacePage resources now have the first Fensalir resolver: engine users can declare GPU-resident 2D pages with dimensions, format, version, and optional local source, and Fensalir allocates/binds them as shader-readable page textures for future Height/SDF/material lowerings. VolumeTexture resources can now be declared and resolved as GPU-resident shader-readable 3D textures for future density/extinction/SDF3D - lowerings. + lowerings. Mesh resources now package friendly vertex/index ownership: + `Mesh.Vertices` and `Mesh.Indices` describe the GPU buffers, plus topology, + index format, bounds, submesh count, and version. The Fensalir DSL can + declare those mesh packages, and the D3D12 registry allocates/reuses the + backing vertex/index buffers under the mesh resource key. Mesh draw/material + lowerings remain future engine work. - `config/perfect-machine.example.json` declares live owners, sensors, reservoir views, and runtime policy. - `src/Mimir.Runtime/Synchronization` now includes the Perfect Machine module