metal: MetalFX serves the title's FidelityFX upscale; depth/motion on a real frame and frame generation are what is left #638
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T20:30:57Z.
The title's own FidelityFX upscale is served by MetalFX on a native host (spatial, or temporal where the dispatch carries depth and motion vectors), and MetalFX's frame interpolator is wrapped but driven by nothing. This is the state and the work left, so the pieces can be taken in parallel.
What works
crates/victory-metal/src/metalfx.rs:Upscale(spatial and temporal in one type, chosen by what the inputs allow),Spatial,Temporal,Interpolator,View(jitter, motion-vector scale, reset), all throughdlopen+ message sends since the framework is not in the bindings.gfx::Texture::mtllets a caller outside the crate hand it a title texture.crates/victory-gpu: a MetalFX upscale is a pass of the submission, ordered like the others (Pass::MetalFx), and the title's own FidelityFX dispatch reaches it (Cmd::Metalfx).crates/victory-hle/src/modules/metalfx_ffx.rs: withVICTORY_METALFX=upscale, the title's FidelityFX entry points answer here instead of loading its DLLs. Without the switch, or on a host with no MetalFX, the title's own DLLs run as before. Nothing else of FidelityFX's is served — another effect is refused rather than half-done.crates/victory-metal/tests/metalfx_pass.rsruns a real spatial, a real temporal and a refusal on this machine's GPU; the dispatch translation has unit tests.What is left, and who can take it
image+0x1330a44, #632), so this needs the title to present once, thenVICTORY_METALFX=upscaleand a look at whether the jitter and motion scale match what the title wrote.amd_fidelityfx_upscaler_dx12.dllonly; the title never dispatches FSR-frame-generation, so there is no dispatch to intercept. DrivingInterpolatormeans host-side interpolation between two presents, which needs the previous frame's colour and depth plus motion vectors — the same two textures as (2), from the host's side rather than the title's. Whoever picks this up should say in the PR that the frames between presents are invented by us, not by the title.VICTORY_METALFXoff is the default path and unchanged; what has not been measured is a machine with MetalFX present but a scaler missing (e.g. spatial but no temporal).metalfx::temporal()/interpolator()answer that, and the fallback is spatial, but no one has run it with the feature removed.How to reproduce what exists
The current gate on the branch behind PR (fork
AnastasisKon/Native-Victory-macOS):suite-hle558,suite-shader597,suite-gpu493,policy,clippy-win, all passing.