mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-07-08 16:32:45 +00:00
Ensure d3d12 capabilities are filled when amdxc64 hooked get called
Fixes FSR 4 not being selectable with VK w/dx12
This commit is contained in:
@@ -136,6 +136,9 @@ void Amdxc64Hooks::Init()
|
||||
|
||||
HRESULT STDMETHODCALLTYPE Amdxc64Hooks::hkAmdExtD3DCreateInterface(IUnknown* pOuter, REFIID riid, void** ppvObject)
|
||||
{
|
||||
// We need to know D3D12 capabilities by now, one of them being FSR 4
|
||||
IdentifyGpu::updateD3d12Capabilities();
|
||||
|
||||
const auto primaryGpu = IdentifyGpu::getPrimaryGpu();
|
||||
const bool runFsr4Upgrade = primaryGpu.fsr4Support != FSR4Support::None;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user