mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-25 15:46:45 +00:00
added dx11 input source
This commit is contained in:
@@ -855,8 +855,30 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_D3D11_EvaluateFeature(ID3D11DeviceConte
|
||||
return NVSDK_NGX_Result_Success;
|
||||
}
|
||||
|
||||
deviceContext = Dx11Contexts[handleId].feature.get();
|
||||
State::Instance().currentFeature = deviceContext;
|
||||
auto activeContext = &Dx11Contexts[handleId];
|
||||
|
||||
if (activeContext->feature == nullptr) // prevent source api name flicker when dlssg is active
|
||||
{
|
||||
State::Instance().setInputApiName = State::Instance().currentInputApiName;
|
||||
}
|
||||
else
|
||||
{
|
||||
deviceContext = activeContext->feature.get();
|
||||
State::Instance().currentFeature = deviceContext;
|
||||
}
|
||||
|
||||
if (State::Instance().setInputApiName.length() == 0)
|
||||
{
|
||||
if (std::strcmp(State::Instance().currentInputApiName.c_str(), "DLSS") != 0)
|
||||
State::Instance().currentInputApiName = "DLSS";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (std::strcmp(State::Instance().currentInputApiName.c_str(), State::Instance().setInputApiName.c_str()) != 0)
|
||||
State::Instance().currentInputApiName = State::Instance().setInputApiName;
|
||||
}
|
||||
|
||||
State::Instance().setInputApiName.clear();
|
||||
|
||||
if (deviceContext == nullptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user