GPU: texture read-back into a title buffer (CopyTextureRegion to a placed footprint) #1582
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1583"
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?
Imported from Marvisak/VIctory. Originally posted by Impre-visible on 2026-11-24T19:28:17Z.
What
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
Imported from Marvisak/VIctory. Originally posted by Impre-visible on 2026-11-24T22:16:43Z.
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
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:42:50Z.
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