Repository navigation
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 1before including Core.core.hpp:CHECK_GRAPHICS_API_COMPATIBILITYnow defaults to 1 whenENABLE_D3D12_INTEROPis set (UseLumaFSR4+UseLumaFSR, orUseLumaXeSS). A game can still define it itself.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:cpp-linter fails on whole-file clang-format of
core.hpp, which already has the same findings onmain.