feat(d3d12_x): copy texture regions into a position inside a footprint #57
No reviewers
Labels
No labels
accessibility
bug
ci
docs
documentation
duplicate
enhancement
fixes issue
good first issue
help wanted
invalid
library request
libs
needs rebase
question
relinker
stale
tools
unblocks title
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Dark3581--AnyBox!57
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/57/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?
@Dark3581 on GitHub · 2026-11-22 23:48 UTC · original
Dark3581:feat/footprint-offsets→main· +41 −4 · 4 files · 1 commits · merged 2026-11-22 23:52 UTCWhat
CopyTextureRegionwith a footprint destination writes atDstX,DstY,DstZinside the footprint; the recorder (#51) always wrote at its origin.CopyTextureToFootprinttakes that position: the region is the source box, or the whole subresource without one (as D3D12 does), placed at the position, and a region running past the footprint is refused.CopyTextureToBufferis now its zero-position case, so existing callers are unchanged. The pending recorder debt entry is updated.Tested
Windows 10, RTX 3070 Ti (driver 621.14), Khronos validation layer.
pso_probe commands-gpu --validate: the 16x16 green square copied into a 32x32 footprint at (4, 2) reads back at (4, 2) and (19, 17), the bytes around it keep their fill, a position that runs past the footprint and a whole 64x64 mip into the 32x32 footprint are refused; the 14 earlier checks still pass (16 checks, 0 validation errors).planes-gpu,draw-gpuandindirect-gpustill pass.ctest: 66 of 66. Thed3d12_xtargets also build with MSVC 2022 (which caught a local namedsmall, arpcndr.hmacro, in the test; renamed).python tools/check_conventions.pyanddebt_fold.py --check: ok.Checklist
main; no other open PR implements the same functionspython tools/check_conventions.pypasses (no comments in code, one declaration per export, Conventional Commit subjects)AbxNotImplemented/AbxUnsupported); silent stubs are listed under Silent stubs through a debt fragmentdocs/dev/debt/changes/<branch>.md(the pending recorder entry updated)CopyTextureRegiondocumentation