VICTORY_DLSS=1: an upscaling the title asks for is recorded by DLSS Super Resolution at the same place of the title's command list, from the same colour, depth, motion vectors, exposure and reactive mask into the same output: a step of ours in the list (list::external; with VICTORY_THIN=1 an op in the list's stream, run where it is translated), the inputs prepared as a compute shader's would be, moved to the states the title gave, handed to slEvaluateFeature as local tags, the title's draw state set again after. The DLSS mode follows the render and output sizes (the smallest whose optimal size holds the render); preset from VICTORY_DLSS_PRESET; constants from the dispatch (jitter, motion-vector scale, near, far, field of view, reset, context flags). VICTORY_FRAMEGEN=1 (needs the line of submissions): the device is handed to Streamline, the direct queue is made through its device proxy and our swap chain through its factory proxy (manual hooking, nothing hooked globally). A host list that recorded an upscaling is noted; at its submission its depth and motion vectors become the latest, and the next present tags them (states the submissions left them in), sets constants and the latency markers, and switches frame generation on; off on presents without an upscaling. Series S's interface plane is tagged as the interface over the scene plane. Streamline is loaded at run time from VICTORY_STREAMLINE_DIR (default C:\dev\sdk\streamline-sdk-v2.14.16\bin\x64) after an Authenticode check, with no downloads; anything missing leaves the title's upscaling and our present as they were. The C ABI is written by hand from the SDK 2.14 headers (offsets asserted as the SDK asserts them); no NVIDIA file is in the repository. Log lines: support and requirements, feature versions, the first recording and every change of mode or size, per second the upscalings done, failed and left to the title, frame generation on/off, frames shown and status. streamline::check backs `victory upscaler-check`. The external-work helpers (host textures in a given state, inputs prepared as for a compute view, output written on the host) are ported from DexNom/VIctory (crates/victory-gpu/src/external.rs, GPL-3.0-or-later); the FidelityFX state mapping is from its fidelityfx.rs. Not run with the title yet: `victory upscaler-check` (no device) loads Streamline 2.14.16 on the RTX 4070 SUPER, driver 621.01: DLSS, DLSS Frame Generation and Reflex supported. Co-Authored-By: Claude Opus 5.5 <[email protected]>
46 lines
1.5 KiB
TOML
46 lines
1.5 KiB
TOML
[package]
|
|
name = "victory-gpu"
|
|
description = "D3D12.X command streams and GPU memory, translated onto host D3D12."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
|
|
[dependencies]
|
|
blake3.workspace = true
|
|
zlib-rs.workspace = true
|
|
tracing.workspace = true
|
|
anyhow.workspace = true
|
|
victory-formats.workspace = true
|
|
victory-pipeline.workspace = true
|
|
victory-shader.workspace = true
|
|
|
|
[build-dependencies]
|
|
blake3.workspace = true
|
|
|
|
[dev-dependencies]
|
|
tempfile.workspace = true
|
|
|
|
[features]
|
|
# Debugging switches (frame capture, the host debug layer, per-draw data).
|
|
diagnostics = []
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { workspace = true, features = ["Win32_Foundation", "Win32_Security", "Win32_Security_Cryptography", "Win32_Security_WinTrust", "Win32_System_Diagnostics_Debug", "Win32_System_Diagnostics_ToolHelp", "Win32_System_Kernel", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_Performance", "Win32_System_ProcessStatus", "Win32_System_Registry", "Win32_System_SystemInformation", "Win32_System_Threading", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_WindowsAndMessaging"] }
|
|
windows = { workspace = true, features = [
|
|
"Win32_Graphics_Direct3D",
|
|
"Win32_Graphics_Direct3D_Fxc",
|
|
"Win32_Graphics_Direct3D12",
|
|
"Win32_Graphics_Dxgi",
|
|
"Win32_Graphics_Dxgi_Common",
|
|
"Win32_Graphics_Gdi",
|
|
"Win32_Security",
|
|
"Win32_System_LibraryLoader",
|
|
"Win32_System_Threading",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
] }
|