Publish GPU view addresses for dynamic descriptor snapshots #107

Closed
opened 2026-11-27 01:33:10 +00:00 by TaynanGT · 1 comment
TaynanGT commented 2026-11-27 01:33:10 +00:00 (Migrated from github.com)
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T01:33:10Z.


A descriptor table containing a CBV is snapshotted into dynamic slots. Shader user data receives the new table offset, so a dynamically indexed buffer address looks up the dynamic slot in VIEW_ADDRESSES. The original descriptor path writes that metadata, but make_at and make_listed only write the stride. A snapshotted view can consequently look like a zero pointer. No renderer-port flag is required for the CBV snapshot. Snapshot decision · Offset binding · Dynamic descriptor creation

Synthetic regression

Put a buffer view and a CBV in one table. Snapshot it, then use a computed index to read the buffer address through the shader. Assert that the address matches the original view for both snapshot creation paths. Reuse the slot for a null or unrelated view, and check that the previous address is cleared.

Found during review of #37. Verified in the source at cc9ed86.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:6638092354 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/107). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T01:33:10Z. --- A descriptor table containing a CBV is snapshotted into dynamic slots. Shader user data receives the new table offset, so a dynamically indexed buffer address looks up the dynamic slot in `VIEW_ADDRESSES`. The original descriptor path writes that metadata, but `make_at` and `make_listed` only write the stride. A snapshotted view can consequently look like a zero pointer. No renderer-port flag is required for the CBV snapshot. [Snapshot decision](https://github.com/TaynanGT/Vice-Tay/blob/cc9ed86c78ee44dae1392d0e101f7b3d2a91a9ec/crates/victory-gpu/src/draw.rs#L3813-L3827) · [Offset binding](https://github.com/TaynanGT/Vice-Tay/blob/cc9ed86c78ee44dae1392d0e101f7b3d2a91a9ec/crates/victory-gpu/src/draw.rs#L1781-L1793) · [Dynamic descriptor creation](https://github.com/TaynanGT/Vice-Tay/blob/cc9ed86c78ee44dae1392d0e101f7b3d2a91a9ec/crates/victory-gpu/src/descriptor/host.rs#L3082-L3143) **Synthetic regression** Put a buffer view and a CBV in one table. Snapshot it, then use a computed index to read the buffer address through the shader. Assert that the address matches the original view for both snapshot creation paths. Reuse the slot for a null or unrelated view, and check that the previous address is cleared. Found during [review of #37](https://github.com/TaynanGT/Vice-Tay/pull/37#discussion_r4711638215). Verified in the source at `cc9ed86`.
TaynanGT commented 2026-11-27 01:34:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T01:34:57Z.


The fix is in #111. Both dynamic snapshot paths now publish the title address alongside the stride and format bits, and reuse clears the old address. The descriptor-heap regression covers direct creation and cached copies. CI and the in-game path are still being checked.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7207405783 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/107#issuecomment-7207405783). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T01:34:57Z. --- The fix is in #111. Both dynamic snapshot paths now publish the title address alongside the stride and format bits, and reuse clears the old address. The descriptor-heap regression covers direct creation and cached copies. CI and the in-game path are still being checked.
Sign in to join this conversation.
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
TaynanGT/Vice-Tay#107
No description provided.