Run Minecraft: runtime HLE, D3D12.X device on the host GPU, shader IR
Loader: map title-shipped DLLs, patch static TLS loads to slot 0, crash reporter, title paths for GetModuleFileName*. HLE: task queue and async, XUser (one offline user), system ids, title id, features, invites, game events, persistent local storage, GameInput with no devices, xmem, console audio hardware queues, life cycle (close suspends, then terminates), and a file layer with virtual drives rewritten in path-taking imports. GPU: D3D12.X device, DXGI chain, heaps, resources, fences, queues and command lists translated onto a host D3D12 device; clears, barriers, copies, resolves and PresentX into the title's window. Shaders: SGD5 reader and `victory translate`; SSA IR with node splitting for irreducible flow; structurisation removing EXEC. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
12caefe804
commit
754619f30e
61 files changed
+12775
-88
No files matched your search
@@ -1,12 +1,31 @@
|
||||
//! D3D12.X on host D3D12.
|
||||
//!
|
||||
//! D3D12.X records many commands by writing command-processor packets into
|
||||
//! command lists from code inlined into the title itself, so no import-level
|
||||
//! hook sees them. This crate decodes those packet streams at
|
||||
//! `ExecuteCommandLists` time and replays them on host D3D12, and maps the
|
||||
//! title's GPU virtual addresses (console memory is unified) to host
|
||||
//! resources.
|
||||
//! D3D12.X records commands from code inlined into the title, which writes
|
||||
//! packets into the command list while its put pointer is below a limit and
|
||||
//! calls the list's method otherwise. Our lists keep the limits at zero, so
|
||||
//! every command arrives here as a call, to be run on host D3D12. The
|
||||
//! title's GPU addresses are CPU addresses (console memory is unified).
|
||||
//!
|
||||
//! Planned modules: `packets` (stream decoder), `memory` (title GPU
|
||||
//! addresses to host heaps), `pipeline` (PSOs from `victory-shader` output),
|
||||
//! `present` (swap chain, frame pacing).
|
||||
//! [`device`] is the device object titles create, [`dxgi`] its adapter side,
|
||||
//! [`resource`] heaps and resources, [`fence`] fences, [`queue`] command
|
||||
//! queues, [`list`] command allocators and lists, [`descriptor`]
|
||||
//! descriptor heaps, [`root`] root signatures, [`query`] query heaps,
|
||||
//! [`signature`] command signatures, [`pipeline`] pipeline states,
|
||||
//! [`frame`] frame pacing, [`object`] what all console graphics objects
|
||||
//! share. Planned: `present` (swap chain).
|
||||
|
||||
pub mod descriptor;
|
||||
pub mod device;
|
||||
pub mod dxgi;
|
||||
pub mod fence;
|
||||
pub mod frame;
|
||||
#[cfg(windows)]
|
||||
mod host;
|
||||
pub mod list;
|
||||
pub mod object;
|
||||
pub mod pipeline;
|
||||
pub mod query;
|
||||
pub mod queue;
|
||||
pub mod resource;
|
||||
pub mod root;
|
||||
pub mod signature;
|
||||
Reference in new issue
Block a user