BVH+DynamicStructureTable+StructureId removal+Tree

This commit is contained in:
2026-11-11 23:06:15 +01:00
parent a39256a0f1
commit 7e4fdf3f4e
30 changed files with 3183 additions and 1643 deletions
+4 -5
View File
@@ -407,8 +407,7 @@ group:
- group 0 — table pointers, or request handler;
- group 1 — request buffer, or insertion data;
- group 2 — slot metadata: binding 0 `fixed_table_anchors`,
binding 1 `fixed_table_structure_ids`.
- group 2 — slot metadata: binding 0 `fixed_table_anchors`.
### 9.2 WGSL modules and entry points
@@ -421,9 +420,9 @@ group:
| `shaders/invalidation.wgsl` | `invalidation` | Clear cache pointers that reference pages recycled this insert. |
| `shaders/write_pointers.wgsl` | `write_pointers` | Link internal insertion results into parent pages using the batch's `InsertionParent`. |
| `shaders/eviction.wgsl` | `reset_lru_list`, `indirect_copy` | Build the eviction candidate list: descending depth sort, then gather timestamps for the stable timestamp sort. |
| `fixed_table/write_requests.wgsl` | `write_requests` | Emit root requests for table slots, resolving the slot's current structure id and anchor. |
| `fixed_table/validate_insertion.wgsl` | `validate_external` | Keep only root entries whose named slot still carries the same anchor/id and waits for a page. |
| `fixed_table/insertion.wgsl` | `insertion` | Re-check anchor/id/slot, then point the table slot at the inserted root page. |
| `fixed_table/write_requests.wgsl` | `write_requests` | Emit root requests for table slots, resolving the slot's current anchor. |
| `fixed_table/validate_insertion.wgsl` | `validate_external` | Keep only root entries whose named slot still carries the same anchor and waits for a page. |
| `fixed_table/insertion.wgsl` | `insertion` | Re-check anchor/slot, then point the table slot at the inserted root page. |
| `fixed_table/invalidation.wgsl` | `invalidation` | Clear table slots pointing at recycled pages. |
| `terrain/shaders/toroidal_structure.wgsl` | `invalidate_new` | Reset table slots whose world position changed. |