Improve FSR4 Dx11 compatibility when using w/Dx12 backend

This commit is contained in:
cdozdil
2025-03-13 12:16:08 +03:00
parent 931bec410a
commit 937d07fc0e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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