mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-09-23 13:56:19 +00:00
dx11 backend selection fix
This commit is contained in:
@@ -201,14 +201,14 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_D3D11_CreateFeature(ID3D11DeviceContext
|
||||
// Create feature
|
||||
auto handleId = IFeature::GetNextHandleId();
|
||||
|
||||
if (Config::Instance()->Dx11Upscaler.value_or("fsr22") == "fsr22")
|
||||
Dx11Contexts[handleId] = std::make_unique<FSR2FeatureDx11>(handleId, InParameters);
|
||||
if (Config::Instance()->Dx11Upscaler.value_or("fsr22") == "xess")
|
||||
Dx11Contexts[handleId] = std::make_unique<XeSSFeatureDx11>(handleId, InParameters);
|
||||
else if (Config::Instance()->Dx11Upscaler.value_or("fsr22") == "fsr22_12")
|
||||
Dx11Contexts[handleId] = std::make_unique<FSR2FeatureDx11on12>(handleId, InParameters);
|
||||
else if (Config::Instance()->Dx11Upscaler.value_or("fsr22") == "fsr21_12")
|
||||
Dx11Contexts[handleId] = std::make_unique<FSR2FeatureDx11on12_212>(handleId, InParameters);
|
||||
else
|
||||
Dx11Contexts[handleId] = std::make_unique<XeSSFeatureDx11>(handleId, InParameters);
|
||||
Dx11Contexts[handleId] = std::make_unique<FSR2FeatureDx11>(handleId, InParameters);
|
||||
|
||||
auto deviceContext = Dx11Contexts[handleId].get();
|
||||
*OutHandle = deviceContext->Handle();
|
||||
|
||||
Reference in New Issue
Block a user