diff options
| author | Ryx <118130241+Ryx69@users.noreply.github.com> | 2026-11-21 20:22:20 +0100 |
|---|---|---|
| committer | Ryx <118130241+Ryx69@users.noreply.github.com> | 2026-11-21 20:22:20 +0100 |
| commit | 40f6399088422ef4088526b6202934e60c762991 (patch) | |
| tree | e34c15843edeeb30ef4da5cace6c5c0c04f7251f /runtime/src/pe_loader.cpp | |
| parent | 2a732e0881cd20e7c63ba5ced7489cc5e97bc8e1 (diff) | |
Runtime: Vulkan-backed ID3D12Device behind the Xbox-ABI proxy
- d3d12_vulkan_device.cpp: an ID3D12Device11 (PC ABI) the device proxy
forwards to. Creates queues, allocators, command lists (incl.
CreateCommandList1), fences, descriptor heaps (32-byte slots; RTV/DSV hold
TargetViews), render-target and depth-stencil views, committed buffers
(upload/readback mapped and zeroed) and 2D textures in the common formats,
and answers feature-level and architecture queries. Everything else is a
generated stub that logs once.
- First use of a new texture zero-fills it and moves it to the layout the
command expects (vulkan_replay.h initialize), as D3D12 committed resources
start zeroed; no submission at creation. CREATE_NOT_ZEROED skips the fill.
- Children hold the proxy, so GetDevice returns the Xbox-ABI object; COM base
classes moved to d3d12_com_object.h. D3D12 queues share one VkQueue behind a
submit lock.
- D3D12XboxCreateDevice: LEONIDA_D3D12=vulkan creates the Vulkan device on its
own instance and wraps it in the same proxy (gta6rt built with the Vulkan
SDK and Python 3); the host PC device stays the default.
Tests: d3d12_vulkan_device_test calls everything through the proxy (heaps via
slot 14 with RAX start handles, a render target via slot 76 with the Xbox
layout word) and reads colour, depth, stencil and a never-written texture
back; it also runs the standalone device. Clean under the Khronos validation
layer with the other GPU tests; all 6 ctest tests pass.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions