mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-09-26 15:26:17 +00:00
Improve FSR4 Dx11 compatibility when using w/Dx12 backend
This commit is contained in:
@@ -872,7 +872,7 @@ static FARPROC hkGetProcAddress(HMODULE hModule, LPCSTR lpProcName)
|
||||
{
|
||||
if (strcmp(lpProcName, "D3D12SDKVersion") == 0)
|
||||
{
|
||||
LOG_INFO("D3D12SDKVersion call, returning this version!");
|
||||
LOG_INFO("D3D12SDKVersion call, returning this version!");
|
||||
return (FARPROC)&customD3D12SDKVersion;
|
||||
}
|
||||
|
||||
|
||||
@@ -566,7 +566,7 @@ bool FSR31FeatureDx11on12::InitFSR3(const NVSDK_NGX_Parameter* InParameters)
|
||||
ffxQueryDescGetVersions versionQuery{};
|
||||
versionQuery.header.type = FFX_API_QUERY_DESC_TYPE_GET_VERSIONS;
|
||||
versionQuery.createDescType = FFX_API_CREATE_CONTEXT_DESC_TYPE_UPSCALE;
|
||||
//versionQuery.device = Dx12Device; // only for DirectX 12 applications
|
||||
versionQuery.device = Dx12Device; // only for DirectX 12 applications
|
||||
uint64_t versionCount = 0;
|
||||
versionQuery.outputCount = &versionCount;
|
||||
// get number of versions for allocation
|
||||
|
||||
Reference in New Issue
Block a user