Ported from VIctory (victory-gpu device.rs, queue.rs, list.rs, fence.rs,
descriptor.rs; GPL-3.0-or-later).
What the title's inlined code reads after the object headers now holds what
VIctory lays out there, instead of the proxies' own pointers:
- device: +0x10 the null constant buffer address (0) and +0x18 the out-of-line
block whose first byte, non-zero, sends inlinable calls to the table (before:
the PC vtable address and the PC slot count, non-zero by chance);
- queue and allocator: the command list type at +0x10 (V queue.rs:31-35: the
title reads the list type right after the header); list: the type at +0x10,
its console body still at +0x18 (before: the device pointer);
- console fence: its value word at +0x10, where slot 12 points;
- descriptor heap: its description at +0x10 and CPU start at +0x20.
Device slot 13 in the console layout answers OPTIONS in the console's 16-word
structure (a console-only word inserted at index 11; the PC runtime refuses the
64-byte size) and FEATURE_LEVELS up to 12_2, the console hardware's; every
other feature is still the device's.
xs_proxy_mock_test checks both (check_console_headers, check_console_features)
and compares the 32-bit heap-flag, state and layout arguments of its mocks by
their low halves (their upper halves are undefined in the register; the test
failed on that with this compiler).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from VIctory (GPL-3.0-or-later, Marvisak and contributors, DexNom fork),
victory-gpu queue.rs:697-731 (Written::GpuTimestamp, SystemTimestamp) and
list.rs:1964-1983.
- List slot 72 flag 1, the GPU timestamp: a timestamp query of the device's
own heap (COPY_QUEUE_TIMESTAMP for copy lists) ended where the list is and
resolved into the title address, so the GPU writes its clock there when it
reaches it, in the queue's ticks (GetTimestampFrequency,
GetClockCalibration). An address that is not 8-byte aligned, or a device
without timestamp queries, keeps the CPU clock at recording (logged).
- Flag 2, the system timestamp: QueryPerformanceCounter once the submission
has run, as VIctory stores it. The console queue signals a fence of its own
behind an ExecuteX whose lists asked for one; a thread-pool wait writes the
counter at each address when it completes.
- docs/port_plan.md and docs/port_status.md: what port/d3d12-slots2 does.
Tests: xs_proxy_mock_test (flag 2 stored after the submission, the queue's
fence made once, a reset forgets the stamps), d3d12_title_memory_test on the
RTX 4060 Ti (the GPU timestamp lies between calibrations taken after
recording and after completion; the system timestamp likewise).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The console's slot 86 (VIctory device.rs:454, pipeline.rs create_stream) takes the PC's
D3D12_PIPELINE_STATE_STREAM_DESC, laid out as on the PC, except that the console numbers the
amplification and mesh shaders 23 and 24 where the PC has 24 and 25 (pipeline.rs:679-705). A copy
of the stream gets the PC numbers and goes to the PC ID3D12Device2::CreatePipelineState (slot 47),
which on the Vulkan device is the layer's stream PSO. A type past 24 is the console's own and of
unknown size: the stream is cut there and that is logged once, as VIctory ignores the rest.
xs_proxy_mock_test: slot 86 is the stream method in the console layout; a console stream reaches
the mock's slot 47 renumbered and cut at an unknown type, and a null description is refused.
Subobject sizes ported from VIctory (GPL-3.0-or-later, Marvisak and contributors, DexNom fork).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from VIctory (GPL-3.0-or-later, Marvisak and contributors, DexNom fork).
- Queue slot 31, CopyPageMappingsBatchX(count, batches, pool, pool pages,
flags) (victory-gpu queue.rs:897-962): each batch's ranges map pool pages in
order (kind 0), one pool page at each page (1), unmap (2) or leave (3),
through the page mapper (rt::d3d12_xs::set_page_mapper). Without one it
answers E_INVALIDARG, as VIctory's does; a range past the pool or a refused
page is logged once and the call answers S_OK.
- rt::xmem::map_alias (victory-hle xmem.rs:754-791): the physical pages
mapped at one range mapped again at another, page by page (the sources read
first, so the ranges may overlap), or unmapped. The title memory there
leaves the GPU and is imported again as XMemMapPhysicalPages does it
(make_gone, PageRuns), so the imports follow the remap. gta6rt sets it.
- Queue slots 23/24, SuspendX/ResumeX: accepted (VIctory leaves them
E_NOTIMPL); nothing suspends a title here.
Tests: xs_proxy_mock_test (the four range kinds, a range past the pool,
no mapper, 23/24), d3d12_title_memory_test on the RTX 4060 Ti (pool pages
aliased into a second window: the CPU and a GPU CopyMemoryToMemoryX read
them there, at heap_base + address; an unmap range takes them off the GPU).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from VIctory (GPL-3.0-or-later, Marvisak and contributors, DexNom fork).
- Device slot 61, CreateSamplerX(desc, handle): the console's 27-word sampler
description (victory-gpu sampler.rs, descriptor.rs:828-832). On the Vulkan
device the S# is written from its hardware fields (per-axis filters, mip
filter, filter mode), the address modes, LODs, anisotropy, comparison and
border colour as VIctory reads them; a real test (LESS..GREATER_EQUAL) makes
a comparison sampler. Any other device gets VIctory's host D3D12 sampler
through CreateSampler (console_sampler_desc).
- Sampler heaps are 16 bytes a slot (descriptor.rs:1-7, 180-183); views,
RTVs and DSVs stay 32. Heap sizes, the increment, copies and the sampler
writes follow the heap type.
- List slots 73/74, WaitValue32/64: the wait goes into the Vulkan list as a
cut point (leonida::MemoryWait). VulkanQueue::execute_parts cuts the lists
at their waits and runs the parts in order (queue.rs submit_cut,
list.rs cut/detach_parts): what comes before an unmet wait runs, the rest is
held until the value is in memory. A per-device poller (250 us
high-resolution timer, only while a wait is held) releases it when another
queue's Write32/64 or a fence's value word gets there; PresentX forces what
is held (queue.rs:113-119); LEONIDA_VALUE_HOLD_MS (default 1000, 0: none)
bounds a hold. Predication carries over a cut. Devices without the handler
keep the ExecuteX check.
Tests: xs_proxy_mock_test (slot 61 fallback, wait handlers, PresentX force),
d3d12_sampler2_test (16-byte slots, S# from console descriptions),
d3d12_title_memory_test (holds met by a later Write32 on another queue, by a
fence signal through the value word, and forced at PresentX).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A GPU address is now the title's CPU address on a capture-replay device
(src/title_memory.h has the design and the RTX 4060 Ti / 616.64
measurements behind it):
- The arena's memory asks for the device address heap_base = 512 GiB
(bufferDeviceAddressCaptureReplay, enabled on the standalone device), and
every range of the title's graphics memory is imported with
VK_EXT_external_memory_host at heap_base + its address (Resource::
create_host_buffer) and registered as a buffer at VA = that address, so
heap_base + VA in shaders and buffer_at in the replay both reach the
title's own bytes, with no copy. LEONIDA_TITLE_MEMORY=0 turns it off.
- xmem places 32-bit graphics memory in [1 GiB, 4 GiB) and the rest in
[64 GiB, 448 GiB) (VIctory xmem.rs:63-88), drops write-combining as VIctory
does (xmem.rs:60-64), and tells the layer what becomes GPU-visible (commits
of graphics memory, mapped physical pages, committed then) and what is
about to go (VirtualFree, unmaps, remaps): rt::xmem::set_graphics_listener,
connected in gta6rt.
- Driver behaviour the imports work around, each measured: imported memory
cannot be sparse-bound (no 2^40 mirror); every import but the first also
takes an ordinary device range right after the arena, so the windows'
device addresses are held by sparse buffers at them and an import takes
its part; imports get addresses 2 MiB at a time, so imports in one 2 MiB
block are merged.
- Device slot 133 binds its buffer to the import that holds its pages.
- Device slots 70/71 (V device.rs:443-444, descriptor.rs:795-818,
resource.rs:2383-2448): buffer views are V#s at the title address; texture
views get a texture keyed by (address, description with words 1 and 13
zeroed), filled from title memory and detiled (gfx10_tiling.h) for one 2D
level of SW_4KB_S or SW_64KB_D; other layouts start zeroed, logged.
- List slots (V list.rs:1294-1431, 1596-1613, 1891-1983): 62
CopyMemoryToMemoryX as copies between the buffers at those addresses,
71/72 Write32/64 as WriteBufferImmediate MARKER_OUT (timestamps: the CPU
clock at recording), 100 DispatchMeshX as DispatchMesh(x, 1, 1) (indirect
dropped, as V does), 148 AllocateUploadMemory from the device's imported
upload blocks, given back at reset; 73/74 WaitValue recorded and waited
for at ExecuteX up to LEONIDA_VALUE_WAIT_MS (100), not held as V holds
them.
d3d12_title_memory_test (RTX 4060 Ti): a compute shader written to the
translator's contract reads title memory through a slot-70 V# in a console
descriptor heap in 32-bit title memory and writes it back through a root UAV
at a title address; a slot-70 SW_64KB_D texture reads back as its texels;
slot 71 V#/T#; list slots 62/71/72/73/148; slot 133 on mapped physical pages;
unmapping and the title's VirtualFree release the imports.
Retail title: every import succeeds (4.5 GB of pools, the 32-bit windows,
slot 133's 174 MB buffer); slot 70 now writes its view. The title still stops
at its breakpoint game_scarlett_master.exe+0x247af2d after its back buffers:
a pool check that slot 70 does not reach.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The device, queue, list and fence proxies now take each slot's meaning
from data, runtime/shims/d3d12_xs_slots.h, built from victory-gpu
(device.rs:402-458, queue.rs:957-1001, list.rs:2055-2173,
fence.rs:141-154) and Leonida's own measurements, each entry citing its
source; static_asserts refuse two entries for one slot. VIctory's switch
(device.rs:149-168) picks the layout: a device created as ID3D12Device11,
as the title's is, gets the console layouts; any other keeps the PC order
that Leonida's PC-interface tests (device_proxy_test, queue_proxy_test,
tiny_frame) drive. This replaces the guessed +4 list rule and the
PC-order queue and fence proxies for the title.
Console layout:
- Queue: Signal 16, Wait 17, GetTimestampFrequency 18 -> PC 14/15/16;
GetDesc 28 -> PC 18; ExecuteCommandLists 10 and ExecuteX 35 -> PC 10
(list proxies unwrapped); Signal2X 34 -> PC 14; PresentX 32 -> the
device's present handler (set_present_handler), else S_OK, as VIctory
answers; markers 11-13 ignored; 23/24 (SuspendX/ResumeX) and 31
(CopyPageMappingsBatchX) refused as open; every other slot refused.
- Fence slot 12: the address of a 64-bit word kept at the real fence's
completed value. CPU Signal and GetCompletedValue update it at once; a
console queue Signal registers SetEventOnCompletion on one process-wide
event whose thread-pool wait re-reads the listed fences.
- Device: 25/26/108 take the return buffer first (V resource.rs:802-811,
840-849, 2583-2593; Leonida retail_boot_chain 3.1; the title faults at
26 without it), either order accepted; 48 takes the console queue
description {type, flags, engine/pipe, queue} (queue.rs:464-495); 69 is
ignored; 74/75 keep page pools; 127 -> PC CreateCommittedResource3 with
a PC description and ALLOW_DISPLAY cleared (CreateCommittedResource in
COMMON before Device10); 57 is refused with its output nulled; 12 makes
console list proxies; every allocator is wrapped and its slot 9 is
accepted; a slot from 44 on that no source names is refused instead of
reaching the PC method at that number.
- List: queries 28-30 -> PC 52-54, the +4 block 32-55, 61 ExecuteIndirect,
80 DispatchX -> Dispatch, 85/86 -> CopyTextureRegion/CopyResource,
129 -> DispatchMesh, 139 ResetX -> Reset, 146 -> Barrier; 51 and 70
(float arguments) through thunks with the real prototype; the 59 marker
and VIctory's hints and syncs ignored; the console List5/List6 ids
answered (the list is made as ID3D12GraphicsCommandList).
Both layouts: device 78-81 are VIctory's frame clock (frame.rs), not the
HLE stand-in that returned at once.
Where the sources disagree (evidence from the title wins):
- List: the +4 rule sent 56-58 to the PC queries, 60 to EndEvent and 31
to ExecuteBundle. VIctory has the queries at 28-30 and names none of
27, 31, 56-58, 60, which are now refused. Leonida's 59 marker (FSR DLL)
fits VIctory's newer layout, where ExecuteIndirect moved to 61.
- Device 48: retail_boot_chain 3.2 read a PC description and had to
clamp Flags; VIctory's layout explains it (the pipe lands there).
- Device 75: PC CreateCommandQueue1 in Leonida, UnregisterPagePool in
VIctory: VIctory's in the console layout.
- Device 45/46/50: PC Device1/3 methods in Leonida; console methods
nobody names per VIctory's counts: refused in the console layout.
- Device 67: VIctory leaves it unimplemented with the same (desc, iid,
out) shape; Leonida's DeserializeComputePipelineStateX (FSR DLL) stays.
- Queue GetDesc: VIctory takes `this` first (queue.rs:950), the device's
struct returns take the buffer first; the queue accepts both.
- Frame clock: the stand-in made a token on every poll and refused a null
token; VIctory's (S_FALSE time-outs, a token only with flag 2) paces
the title.
Open: list 62, 71-74, 100 and 148 still return 0 (no Vulkan-layer path
for title addresses); queue 23/24/31 and device 61/70/71/86 refused;
XboxPresentation is not attached (gta6rt has no window, and its
FramePacer issues its own tokens and models only the origin event); a
title write to the fence word does not move the fence. Not run on the
title: it stops earlier, while DirectStorage is being ported.
Tested (MSVC 19.44, RelWithDebInfo, no Vulkan headers): xs_proxy_mock_test
checks every console queue (128) and list (160) slot against the tables
and through the proxies, the struct returns in both orders, 48, 69,
74/75, 127, 57, the refused device slots, the fence word with deferred
signals, PresentX and the frame clock (40 runs, no failure);
device_proxy_test runs the console layout on WARP. ctest: 116 of 117 pass
without loader; root_sig fails on the base commit too, and loader (no
D3D12 code) times out here. The Vulkan-only tests were not built.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xmem commits physical pages on first touch (#7556), so a range the title has
mapped but not written yet is still MEM_RESERVE when it places a buffer on it
through device slot 133, and the Vulkan layer's import (#7218) refuses reserved
pages and answers with its fallback buffer, which the title's writes never reach.
Slot 133 now calls a registered pages hook (set_placed_at_va_pages_hook, next to
set_placed_at_va_handler) with the buffer's range before the handler; gta6rt
registers rt::xmem::commit_physical_range. A failed commit is logged once and the
handler still runs. Textures don't call it. The Vulkan layer doesn't link xmem.
Tests: xs_proxy_mock_test checks the hook order, arguments, failure and texture
cases; the new d3d12_xmem_placed_test places a buffer on untouched xmem physical
pages and checks the fallback without the hook, and with it the import and a GPU
copy reading the CPU's writes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The title's third word at slot 133 is a D3D12_BARRIER_LAYOUT, not a resource state (measured by
@dracbat on a retail boot: 0x6 SHADER_RESOURCE for its RT/DS textures, 0x3 UNORDERED_ACCESS for its
RT+UAV ones, 0xFFFFFFFF UNDEFINED for the 182 MiB buffer), as PC CreatePlacedResource2 takes it. The
proxy passes it to the handler, and a texture's ordinary committed fallback starts in the equivalent
legacy state (UNDEFINED and unlisted values give COMMON; a state the description refuses retries with
COMMON, so the title always gets its resource). Buffers are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A write-combined (or uncached) page in the range is not imported: an RTX 5090 imported such a range
and read wrong bytes back (found in review). It takes the ordinary-buffer fallback.
- The whole range must be committed, walked with VirtualQuery across allocations (the retail buffer
spans three mapped windows); otherwise E_INVALIDARG instead of undefined behaviour in Vulkan.
- The imported memory is freed as soon as the submitted work has retired (wait_retire_ticket), not
after the next submission: VK_EXT_external_memory_host needs the caller's pages to outlive it, and a
title may free them right after releasing the resource.
- The PC flag mask is 0x5ff: 0x200, which the host refuses, is dropped. Slot 133 is listed in
device_slot_overridden.
- xs_proxy_mock_test registers a handler and checks slot 133's argument positions, the flag mask
(0x20204 -> 0x4), the ROW_MAJOR rewrite and the iid; d3d12_existing_heap_test checks the
write-combined fallback and the partly committed refusal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The retail title calls device slot 133, past the 128-entry table; the call read an empty entry and jumped to 0.
Every slot beyond the PC device's vtable now reaches the generic thunk. Mock test covers slot 133.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With it, d3d12_xs reads list slot 48 as the console's IASetVertexBuffers, so the PC-shaped fixture list's
ClearRenderTargetView never runs and Close fails. The branch also changes runtime/src/pe_loader.cpp and carried
committed conflict markers in docs/fssm_crosscheck.md. Its docs rows go with it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
D3-445, contributed by shdann (tested on Windows 11, MSVC 14.51, RTX
4090; xs_proxy_mock passes, negative control fails as designed).
From CopyTextureRegionX on, the newer console layout sits two slots
later than the older one (docs/d3d12_xs_console_abi.md 5.3). A table
keyed by the older-layout slot gives every measured pair one name, so
list slot 85 under the newer layout and 83 under the older both log
"CopyTextureRegionX"; the seven unmeasured pairs print "tail method,
older slot N". A slot gets no name while the layout is unknown or when
it is not a measured slot of that layout, so a number never wears the
other layout's name. Naming only - console_to_pc_list_slot and the
forwarding are untouched.
Co-Authored-By: shdann <28006689+shdann@users.noreply.github.com>
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
shdann's second case on #2490: a title reads the timestamp frequency at
start-up, before any fence call has detected the layout. Slot 18 then
went to the PC GetDesc - a struct-return write of a whole desc through
a caller that passed an 8-byte out pointer - so the frequency came
back unset (and the write overran).
While the layout is still unknown the call is served as the newer
layout's GetTimestampFrequency instead: an 8-byte write stays inside
either interpretation's buffer. A queue or device already proven
older keeps the generic GetDesc forward; slots 19 and 20 stay no-ops
because their newer interpretations write through caller pointers an
unmodelled older method might not supply.
The mock queue's slot 16 now writes a fixed frequency (unless the
argument is a mock object - then it is a newer Signal's fence), and
check_signalx_detection covers the undetected query and the post-
detection shifted path.
shdann's report on #2490: on a device whose queue layout is still
undetected, the first SignalX at slot 25 answered S_OK without
signalling — the fence never completes and a title waiting on that
value hangs. The Signal/Wait detection at slots 16/17 only helps a
title that calls them; one that signals exclusively through SignalX
(the console-native path) would lose every signal, not just the first.
Per the measured table (docs/d3d12_xs_console_abi.md §4) the
fence-first queue methods are Signal/Wait/SignalX only, so a proxy
fence arriving at slot 25 while the layout is fully unknown is the
newer layout's SignalX: mark the shared detection newer and forward it
as Signal. A proven-older device still leaves slot 25 to the
console-only no-op, and a fence at slot 23 forwards without pinning so
a newer title's own SignalX detection stays open.
The mock's new check_signalx_detection covers the lost-signal repro
(hr=0 calls=0 on the first SignalX), detection inheritance on a second
queue, the proven-older no-op at 25 and the non-pinning forward at 23.
Written with AI assistance (Devin). Verified with the clang-cl/xwin
cross-build under Wine: xs_proxy_mock_test PASS, loader_test 87/0.
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
SOSetTargets (console 49) carries BufferLocation and
BufferFilledSizeLocation, both GPU VAs; both now translate through the
upload arena in the proxy's scratch copy.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
IASetIndexBuffer (console 47) and IASetVertexBuffers (console 48) carry
GPU VAs inside their view structs rather than in an argument word. The
list proxy now rewrites BufferLocation through upload_translate on a
copy — a stack copy for the index view, a scratch array on the proxy
for the vertex views — so a pointer AllocateUploadMemory handed out is
usable for index and vertex data the same way a root descriptor is.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Console list slot 148 carves from a bump arena of persistently-mapped
UPLOAD-heap buffers, so the pointer a title writes is the same memory
the GPU samples. The six root descriptor setters (console 41-46)
translate an arena address to the chunk's buffer device address before
forwarding; other VAs pass through. A device that cannot hand out a
mapped buffer falls back to private memory so the call still returns
something writable.
The mock test now models command lists end to end: creation unwraps
the allocator proxy, the console body exposes the pinned cursor,
console-only slots are recorded without forwarding, slot 148 hands out
aligned arena pointers and slot 43/146 reach the real list.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Queue slots 30 (older layout) and 32 (newer) are the measured PresentX
entry points, with SignalX at 23/25. The queue proxy now detects which
of the two documented console layouts a title uses — a fence reaching
slot 16/17 marks the newer layout — forwards SignalX as PC Signal, and
lazily builds the windowed presentation core for PresentX under
LEONIDA_VULKAN_DEVICE.
Unmodelled console-only queue methods answer S_OK instead of E_NOTIMPL
because frame pacing flows through them; they are still never forwarded.
The mock test now asserts that contract.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Device slot 9 (CreateCommandAllocator) now returns an allocator proxy,
the fourth command object after the queue and fence (BUILD-231) and the
list (D3D-136): the public chain (9 slots, Reset at 8) is forwarded, a
slot past it up to the end of a 64-slot table is logged and refused with
E_NOTIMPL, and a read past the table faults in its own guard region. The
console allocator's extra methods are not measured and not guessed.
A list takes the title's allocator in CreateCommandList and Reset, so a
proxy is only safe where the list side resolves it. Slot 9 therefore
wraps an allocator only when it answers kLeonidaCommandAllocatorTag (the
Vulkan layer's CommandAllocator, whose from() resolves the proxy for both
calls); a PC runtime allocator is handed out unchanged, logged once,
until a command-list proxy unwraps it at Reset. Allocator proxies are
unwrapped in the residency calls like heap, queue and fence proxies.
Device slot 12 is not touched.
Tests: allocator_proxy_test (WARP, a hardware adapter, the Vulkan device:
forwarding, refused tail, guard region, identity, D3D12's allocator rules,
a list created and Reset on the proxy with GPU copies through the queue
and fence proxies read back), mock cases for allocators with and without
the tag and their failure paths, and device_proxy_test's slot-9
expectations. No game files.
AI-assisted (Claude Code).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Device slots 8 (CreateCommandQueue), 75 (CreateCommandQueue1), 36
(CreateFence) and 32 (OpenSharedHandle of a fence) now return queue and
fence proxies. They forward the public chain in PC order (19 queue slots,
11 or 12 fence slots), refuse and log a slot past it up to the end of the
proxy's table, and name a read past the table through a guard region and
a vectored handler.
Heap, queue and fence proxies are unwrapped wherever a device or queue
method hands them to the real runtime: queue Signal/Wait, device slots
31/34/35/45/46/50. Arrays are copied without exceptions. QueryInterface
answers only the modelled interfaces, and logs one the real object has
but the proxy does not model. Outputs are cleared on failure as for
slots 14/62/76. --trace-d3d12 records proxy calls in the README grammar.
Every function a thunk hands its words to keeps them in the same
positions, because a title passes only as many as the method takes.
Tests: queue_proxy_test (host WARP, host hardware, Vulkan device;
differential per-process error cases, guard faults, identity, threads,
raw-slot client, child-runner self-test), xs_proxy_mock_test (older
devices, fences without Fence1, OpenSharedHandle branches, allocation
failures; three guard-setup fault modes), and device_proxy_test through
the D3D12XboxCreateDevice shim. No game files.
AI-assisted (Claude Code).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>