mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-09-26 15:26:17 +00:00
add check for o_ffxGetResourceDX12
This commit is contained in:
@@ -597,6 +597,12 @@ static Fsr212::FfxErrorCode ffxFsr2ContextDispatchBase_Dx12(Fsr212::FfxFsr2Conte
|
||||
}
|
||||
else
|
||||
{
|
||||
if (o_ffxGetResourceDX12 == nullptr)
|
||||
{
|
||||
_version20 = false;
|
||||
return ffxFsr2ContextDispatchBase_Dx12(context, dispatchDescription);
|
||||
}
|
||||
|
||||
auto fsr2xDesc = reinterpret_cast<FfxFsr20DispatchDescription*>(dispatchDescription);
|
||||
|
||||
// Check for FSR2.0
|
||||
|
||||
Reference in New Issue
Block a user