Merge agent/dlss: DLSS Super Resolution through the title's FidelityFX dispatch (VICTORY_DLSS), DLSS Frame Generation (VICTORY_FRAMEGEN), both off by default; Streamline loaded at run time from outside the repo

Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	crates/victory-gpu/src/host.rs
This commit is contained in:
readmet3xt-lab committed 2026-11-26 20:26:47 +05:30
commit 89dca0a59c
16 files changed
+3589 -12

No files matched your search

+36
View File
@@ -180,6 +180,42 @@ fn with_state_on(
crate::copystat::recorded(started);
}
/// Work of ours at a place in a title list (DLSS in place of the title's
/// FidelityFX upscaling, `crate::streamline`): it is given the host list
/// there and says whether it recorded into it; if it did, what the title set
/// is set again before the title's next draw or dispatch.
#[cfg(windows)]
pub(crate) type External = Box<dyn FnOnce(&crate::host::HostList) -> bool + Send>;
/// Runs `work` at this place of title list `this`: now, or, with
/// `VICTORY_THIN=1`, when the list's calls are translated (in their order).
/// False if the list records nowhere.
#[cfg(windows)]
pub(crate) fn external(this: This, work: External) -> bool {
if this.is_null() {
return false;
}
let work = match thin::put_external(this, work) {
Ok(()) => return true,
Err(work) => work,
};
if host_list(this).is_none() {
return false;
}
run_external(this, work);
true
}
/// [`external`]'s work on the list that records `this`'s calls.
#[cfg(windows)]
fn run_external(this: This, work: External) {
with_state(this, |host, state| {
if work(host) {
state.replay(host);
}
});
}
/// The submission of `lists` has run: each gives its descriptor tables'
/// slots back ([`crate::draw::State::tables_done`]). A list cut at waits
/// keeps them: its state goes with its last part.