GPU: texture read-back into a title buffer (CopyTextureRegion to a placed footprint) #1583
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1583
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1583/head"
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?
@Impre-visible on GitHub · 2026-11-24 19:28 UTC · original
Impre-visible:fix/texture-read-back→main· +107 −5 · 2 files · 2 commits · closed without mergingWhat
CopyTextureRegionfrom a texture to a placed footprint in a title buffer (a read-back) was skipped with the one-time warningtexture to buffer copies not implemented. This implements it.list.rs: when the destination is no host resource,read_back_texturecopies the texture on the GPU into a read-back buffer that the list keeps, using the title's footprint at offset 0.host.rs:HostList::read_backrecords (mapped read-back memory, title address, bytes); after the submission has run, next to the existing shadow copy-back and before the bottom-of-pipe writes, the bytes are copied into the title's buffer.upload_bufferand the newread_back_buffershare onemapped_bufferhelper.Measured
Linux, Wine (GE-Proton11-6) + vkd3d-proton, GTX 1660, Series X mode:
Not tested
cargo build --release -p victoryand--features diagnosticsbuild forx86_64-pc-windows-msvc.cargo clippy: not run (cross toolchain here builds but my clippy setup for the Windows target fails on a dependency's build script).🤖 Generated with Claude Code
70564ae) into fix/texture-read-back c1c89516fb@Impre-visible on GitHub · 2026-11-24 22:16 UTC · original
Merged
main(70564ae) into this branch: the conflict was inhost.rs, wheremainadded theafter/missedlists and the fault counter next to the read-back list and its copy; both are kept. Builds forx86_64-pc-windows-msvcwith and without--features diagnostics. Not re-run in the title after the merge.🤖 Generated with Claude Code
@Marvisak on GitHub · 2026-11-25 00:42 UTC · original
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #67. the same patch (only context moved); main still warns 'not implemented' (list.rs:511), and #67, force-pushed to build on main, implements the same read-back with a GPU test.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed