Skip to content

Core: Ignore non D3D11 devices when the D3D12 interop is enabled - #279

Open
VladAdGad wants to merge 1 commit into
Filoppi:mainfrom
VladAdGad:core-interop-api-check
Open

VladAdGad wants to merge 1 commit into
Filoppi:mainfrom
VladAdGad:core-interop-api-check

Conversation

@VladAdGad

@VladAdGad VladAdGad commented Nov 17, 2026 •

Copy link
Copy Markdown

FSR 4 and XeSS create a D3D12 device through the DX11->DX12 interop, and every game that enables them has to remember #define CHECK_GRAPHICS_API_COMPATIBILITY 1 before including Core.

  • core.hpp: CHECK_GRAPHICS_API_COMPATIBILITY now defaults to 1 when ENABLE_D3D12_INTEROP is set (UseLumaFSR4 + UseLumaFSR, or UseLumaXeSS). A game can still define it itself.
  • Removed the now redundant defines in Borderlands GOTY Enhanced, Mass Effect Andromeda and Metal Gear Solid V, whose comments named the interop as the reason. The other games that define it (Nioh, Far Cry 5, Final Fantasy VII Remake, ...) keep theirs.

Games without the interop keep 0, so no extra checks for them.

Tested on Linux, RX 9070 (RDNA 4), proton-cachyos 11.0: Prey with this change + UseLumaFSR4 (follow-up PR), FSR 4 (DX12 Interop) in a loaded save, no "non DirectX 11 device" warning:

[Luma] FSR4: Created context (render 3413x1440, output 5120x2160), provider "4.1.2"

cpp-linter fails on whole-file clang-format of core.hpp, which already has the same findings on main.

FSR 4 and XeSS create a D3D12 device through the DX11->DX12 interop, so CHECK_GRAPHICS_API_COMPATIBILITY now defaults to ENABLE_D3D12_INTEROP instead of each game defining it. Drop the now redundant defines in Borderlands GOTY Enhanced, Mass Effect Andromeda and Metal Gear Solid V.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant