Publish GPU view addresses for dynamic descriptor snapshots #107
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay#107
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TaynanGT on GitHub · 2026-11-27 01:33 UTC · original
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, butmake_atandmake_listedonly 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 creationSynthetic 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.@TaynanGT on GitHub · 2026-11-27 01:34 UTC · original
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.