Native host drops texture copies (CopyResource / CopyTextureRegion) #178
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#178
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?
@LakshanSivakumar on GitHub · 2026-11-26 23:14 UTC · original
The native host records buffer copies but drops texture copies (
CopyResource/CopyTextureRegionbetween textures). In a world frame the title copies three G-buffer targets (one fmt 29, two fmt 28, 1280x720), and those copies are dropped, so any pass that reads them reads nothing.Plan: record texture copies as Metal blits in command order (whole resource, subresource/region, mips and slices, depth/stencil with Metal's depth-from-depth-stencil option), and mark the destination as GPU-written so the CPU texture sync doesn't overwrite it from title memory. With a Metal test that copies a known pattern through the native list path.
Part of the world-picture work (#182). Being worked on now.
@LakshanSivakumar on GitHub · 2026-11-27 00:39 UTC · original
On main
ccfd8c4e, on top of @Sheffy007's texture copies from #183. Added:DepthFromDepthStencilfor D32FloatS8);ResolveSubresourceas a clipped copy;copies_recordedis counted.A warm world run recorded 728 copies with 0 dropped and no GPU errors (an older main dropped 726 by frame 2816). The copies were not what kept the lighting dark (#182); that is the refused shaders. Stencil-only copies are still refused. Leaving this open for you to close.
@LakshanSivakumar on GitHub · 2026-11-27 05:38 UTC · original
Texture copies are now recorded as Metal blits (
ccfd8c4e). A warm world run recorded 728 copies with none dropped. Only stencil-only copies are still refused. Closing; the black-world work continues in #258.