From c08301cd8a43914b6986311a4d348ad91c9ff723 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 26 May 2026 21:04:29 +0100 Subject: [PATCH] Record Fensalir surface page resolver --- docs/implementation-plan.md | 6 ++++-- state/evidence.jsonl | 1 + state/map.yaml | 6 +++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/implementation-plan.md b/docs/implementation-plan.md index 6d62b0e..f71d875 100644 --- a/docs/implementation-plan.md +++ b/docs/implementation-plan.md @@ -172,8 +172,10 @@ a named invariant that the native runtime cannot protect yet. normalization, radius, ramp texture resource, and emission scale. D3D12 now expands and renders those tubes from GPU-resident buffers, samples material per pixel, binds declared local ramp textures, and executes GPU-emitted - indirect draw argument packets; mesh, surface-page, and volume resource kinds - remain future engine cuts. + indirect draw argument packets. Surface-page resources can now be declared and + resolved as GPU-resident shader-readable 2D pages; render lowerings that + consume those pages as height/SDF/material domains remain future engine cuts. + Mesh and volume resource kinds remain unresolved. - `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 diff --git a/state/evidence.jsonl b/state/evidence.jsonl index 648d49b..48f61a8 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -146,3 +146,4 @@ {"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."} {"ts": "2026-05-26T20:40:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir now exposes Texture2D local asset resources for engine users. The field DSL accepts `texture2d id=... key=... path=...`, TubeField `ramp=...` resolves aliases to resource keys, D3D12 lazily uploads local Rgba8 assets and binds the ramp SRV with linear clamp sampling, and unresolved ramps use a Fensalir-owned 0-1 fallback texture. Mimir's DSL smoke now proves two resources, one TubeField lowering, automatic ramp handle binding, and one planned TubeField packet. Headless Fensalir reload, Aquarium.Engine.Tests, Mimir build, and both field smokes passed."} {"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."} diff --git a/state/map.yaml b/state/map.yaml index 2541865..eb7d987 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -324,7 +324,11 @@ accepted_design: 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. + page/volume resolvers. 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. - `config/perfect-machine.example.json` declares live owners, sensors, reservoir views, and runtime policy. - `src/Mimir.Runtime/Synchronization` now includes the Perfect Machine module