refactor: Factoring out attribtues
This commit is contained in:
@@ -15,6 +15,7 @@ The durable system is:
|
||||
|
||||
- `crates/vxls-voxel-cache/src/lib.rs` and `crates/vxls-voxel-cache/src/*` — cache API and GPU passes.
|
||||
- `crates/vxls-voxel-cache/src/shaders/*.wgsl` — runtime-specialised cache shaders.
|
||||
- `crates/vxls-attributes/src/*` — producer-facing attribute traits, payload layouts, and the `Attributes` derive.
|
||||
- `crates/vxls-gpu/src/*` — radix sort, top-K, indirect dispatch, compaction.
|
||||
- `shaders/*.slang` — render-side ray marching, compiled ahead of time.
|
||||
- `crates/vxls-voxel-cache/src/tables.rs` + `crates/vxls-terrain/src/lib.rs` — structure tables
|
||||
@@ -40,9 +41,9 @@ cargo test --workspace # unit tests (GPU tests need an adapter)
|
||||
```
|
||||
|
||||
The repository is a virtual Cargo workspace: the binary lives in `crates/vxls`,
|
||||
the durable engine is split across `crates/vxls-voxel-cache`, `crates/vxls-gpu`,
|
||||
`crates/vxls-profiler`, `crates/vxls-production`, `crates/vxls-bvh`, and
|
||||
`crates/vxls-terrain`. Use `cargo check -p <crate>` for a single crate.
|
||||
the durable engine is split across `crates/vxls-voxel-cache`, `crates/vxls-attributes`,
|
||||
`crates/vxls-gpu`, `crates/vxls-profiler`, `crates/vxls-production`, `crates/vxls-bvh`,
|
||||
and `crates/vxls-terrain`. Use `cargo check -p <crate>` for a single crate.
|
||||
|
||||
SPIR-V files are embedded with `include_spirv_source!` / `include_spirv!` at
|
||||
Rust compile time, so after rebuilding shaders you must also rebuild Rust.
|
||||
@@ -107,7 +108,7 @@ Do not change these casually; they are contracts between Rust, WGSL, and Slang.
|
||||
| Task | Start at |
|
||||
|---|---|
|
||||
| Change page/pointer layout | `crates/vxls-voxel-cache/src/schema.rs`, `crates/vxls-voxel-cache/src/shaders/cache_common.wgsl`, `crates/vxls-voxel-cache/src/shaders/common.wgsl` |
|
||||
| Add/change a cache attribute | `crates/vxls-voxel-cache/src/layout.rs`, `crates/vxls-voxel-cache/src/attributes.rs`, `crates/vxls-voxel-cache/src/shaders/insertion.wgsl`, Slang `fetch_*` in `shaders/voxel.slang` |
|
||||
| Add/change a cache attribute | `crates/vxls-attributes/src/attributes.rs`, `crates/vxls-voxel-cache/src/layout.rs`, `crates/vxls-voxel-cache/src/insertion.rs` (`write_attributes`), `crates/vxls-voxel-cache/src/attributes.rs`, `crates/vxls-voxel-cache/src/shaders/insertion.wgsl`, Slang `fetch_*` in `shaders/voxel.slang` |
|
||||
| Change request prioritisation | `crates/vxls-voxel-cache/src/requests.rs`, `crates/vxls-gpu/src/top_k.rs`, `crates/vxls-gpu/src/radix_sort.rs` |
|
||||
| Change eviction | `crates/vxls-voxel-cache/src/eviction.rs`, `crates/vxls-voxel-cache/src/shaders/eviction.wgsl`, `crates/vxls-voxel-cache/src/shaders/insertion.wgsl` |
|
||||
| Change insertion semantics | `crates/vxls-voxel-cache/src/lib.rs` (`insert`), `crates/vxls-voxel-cache/src/pipelines.rs`, `crates/vxls-voxel-cache/src/shaders/insertion.wgsl`, `write_pointers.wgsl` |
|
||||
|
||||
Reference in New Issue
Block a user