Native host drops texture copies (CopyResource / CopyTextureRegion) #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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T23:14:53Z.
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.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-27T00:39:14Z.
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.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-27T05:38:58Z.
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.