docs: summarize cited design decisions in architecture doc #3092

Open
romeawayfromhome-rgb wants to merge 2 commits from upstream-pr/3094 into main
romeawayfromhome-rgb commented 2026-11-26 07:31:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by romeawayfromhome-rgb on 2026-11-26T07:31:17Z.


Refs #760.

Appends a docs-only summary to docs/architecture.md of the shape of "decision 0003" (shader translation) and "decision 0007" (host GPU) as recorded in the current module docs, at the end of the Shaders section.

Credit: based on studiostephe's in-issue patch on #760, and opened following Marvisak's invitation on #760 that pull requests are open to everyone to submit that patch for consideration.

Scope: this does not create official decision records, does not create or restore TODO.md, and does not duplicate #2846 (which covers the HDR TODO comment reference). No code, config, or test changes.

Claim: https://github.com/Marvisak/VIctory/issues/1633#issuecomment-7185515757

Credits: AI assistance Muse Spark via Clifford with GPT/Gemini cross-check; conductor Legendary Godking (romeawayfromhome-rgb).

Tested: verified cited paths exist at current main and checked #760 claimability/no linked PR/no #1633 claim.
Not tested: no build/test run; docs-only change.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5505868260 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3094). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-11-26T07:31:17Z. --- Refs #760. Appends a docs-only summary to `docs/architecture.md` of the shape of "decision 0003" (shader translation) and "decision 0007" (host GPU) as recorded in the current module docs, at the end of the Shaders section. Credit: based on studiostephe's in-issue patch on #760, and opened following Marvisak's invitation on #760 that pull requests are open to everyone to submit that patch for consideration. Scope: this does not create official decision records, does not create or restore `TODO.md`, and does not duplicate #2846 (which covers the HDR TODO comment reference). No code, config, or test changes. Claim: https://github.com/Marvisak/VIctory/issues/1633#issuecomment-7185515757 Credits: AI assistance Muse Spark via Clifford with GPT/Gemini cross-check; conductor Legendary Godking (romeawayfromhome-rgb). Tested: verified cited paths exist at current main and checked #760 claimability/no linked PR/no #1633 claim. Not tested: no build/test run; docs-only change.
Marvisak commented 2026-11-26 09:06:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T08:20:04Z.


Automated triage for the maintainers.

Needs work. I checked the summary in docs/architecture.md against the module docs on main (ir.rs, structure.rs, io.rs, emit/wave.rs, resource.rs, victory-gpu's shader_cache.rs, queue.rs, pipeline/make.rs, pipeline/library.rs), and it matches them. Before this can be merged:

  • The new paragraphs are single long lines, and a doubled blank line comes before them. The rest of architecture.md wraps at about 76 columns, so please wrap them the same way.
  • The code also cites "decision 0005" (title memory at raw GPU addresses: victory-gpu/src/memory.rs, emit/lower/bvh.rs), which #760's triage lists too. Either cover it in one line or say why it is left out.

CI: not run.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7186467871 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3094#issuecomment-7186467871). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-26T08:20:04Z. --- <!-- victory-triage v1 head=4de8b297b210400ff5b7dbf5a5087cb6b4fcff91 verdict=needs-work at=2026-11-26T08:17:31Z --> Automated triage for the maintainers. **Needs work.** I checked the summary in `docs/architecture.md` against the module docs on `main` (`ir.rs`, `structure.rs`, `io.rs`, `emit/wave.rs`, `resource.rs`, `victory-gpu`'s `shader_cache.rs`, `queue.rs`, `pipeline/make.rs`, `pipeline/library.rs`), and it matches them. Before this can be merged: - The new paragraphs are single long lines, and a doubled blank line comes before them. The rest of `architecture.md` wraps at about 76 columns, so please wrap them the same way. - The code also cites "decision 0005" (title memory at raw GPU addresses: `victory-gpu/src/memory.rs`, `emit/lower/bvh.rs`), which #760's triage lists too. Either cover it in one line or say why it is left out. CI: not run. --- _Generated by [Claude Code](https://claude.ai/code)_
romeawayfromhome-rgb commented 2026-11-26 09:06:15 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by romeawayfromhome-rgb on 2026-11-26T09:00:55Z.


Pushed a fix for the triage notes: the summary is wrapped at ~76 columns with a single blank line before it, and decision 0005 (title memory) is now covered in one short paragraph, checked against victory-gpu/src/memory.rs, the Title memory contract in victory-shader's emit/mod.rs, and emit/lower/bvh.rs at main 63bcca4. Docs-only change; not compiled (no code touched).

— Clifford (AI), conducted by LegendaryGodKing

<!-- greyfinch-sync:Marvisak/VIctory:comment:7187304086 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3094#issuecomment-7187304086). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-11-26T09:00:55Z. --- Pushed a fix for the triage notes: the summary is wrapped at ~76 columns with a single blank line before it, and decision 0005 (title memory) is now covered in one short paragraph, checked against `victory-gpu/src/memory.rs`, the Title memory contract in `victory-shader`'s `emit/mod.rs`, and `emit/lower/bvh.rs` at main 63bcca4. Docs-only change; not compiled (no code touched). — Clifford (AI), conducted by LegendaryGodKing
futurepro62 commented 2026-11-27 11:04:33 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-27T11:04:33Z.


Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head f52f167 (on its base 63bcca4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), dxil.dll from Windows SDK 10.0.26100 (the loader's default), debug.
  • cargo build --workspace --locked, then cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 866 passed, 0 failed, 10 ignored.
  • No new #[test] functions in the diff.
  • --skip leaves out tests that fail on main 63bcca4 on this card too, not because of this PR: heap_direct_texture_reads_mark_their_heap_index ends the victory-shader test process with 0xc0000005 (#2571), so without the skip the rest of that crate never reports; dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views and the two stride_tests hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); gathers_at_a_level_match_the_hardware fails on lane 0 (#1744).

Not tested

  • AMD (the tests take the default adapter), a release build, the title (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7216648514 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3094#issuecomment-7216648514). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-27T11:04:33Z. --- Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head `f52f167` (on its base `63bcca4`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), `dxil.dll` from Windows SDK 10.0.26100 (the loader's default), debug. - `cargo build --workspace --locked`, then `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware`: **866 passed, 0 failed, 10 ignored**. - No new `#[test]` functions in the diff. - `--skip` leaves out tests that fail on main `63bcca4` on this card too, not because of this PR: `heap_direct_texture_reads_mark_their_heap_index` ends the `victory-shader` test process with `0xc0000005` (#2571), so without the skip the rest of that crate never reports; `dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views` and the two `stride_tests` hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); `gathers_at_a_level_match_the_hardware` fails on lane 0 (#1744). **Not tested** - AMD (the tests take the default adapter), a release build, the title (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3094:upstream-pr/3094'
git switch 'upstream-pr/3094'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3094'
git switch 'upstream-pr/3094'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3094'
git switch 'upstream-pr/3094'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3094'
git switch 'main'
git merge --squash 'upstream-pr/3094'
git switch 'main'
git merge --ff-only 'upstream-pr/3094'
git switch 'main'
git merge 'upstream-pr/3094'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!3092
No description provided.