reporting correct extensions for dlss when using extension spoofing

This commit is contained in:
cdozdil
2024-12-11 23:14:28 +03:00
parent 23d93bf3d1
commit 5ea751f852
2 changed files with 11 additions and 14 deletions
+10 -13
View File
@@ -299,22 +299,19 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_VULKAN_GetFeatureInstanceExtensionRequi
}
}
if (FeatureDiscoveryInfo->FeatureID == NVSDK_NGX_Feature_SuperSampling && OutExtensionCount != nullptr) // || FeatureDiscoveryInfo->FeatureID == NVSDK_NGX_Feature_FrameGeneration)
if ((FeatureDiscoveryInfo->FeatureID == NVSDK_NGX_Feature_SuperSampling || FeatureDiscoveryInfo->FeatureID == NVSDK_NGX_Feature_FrameGeneration) && OutExtensionCount != nullptr)
{
if ((FeatureDiscoveryInfo->FeatureID == NVSDK_NGX_Feature_SuperSampling || FeatureDiscoveryInfo->FeatureID == NVSDK_NGX_Feature_FrameGeneration) && OutExtensionCount != nullptr)
if (OutExtensionProperties == nullptr)
{
if (OutExtensionProperties == nullptr)
if (Config::Instance()->VulkanExtensionSpoofing.value_or(false))
{
if (Config::Instance()->VulkanExtensionSpoofing.value_or(false))
{
LOG_INFO("returning 3 extensions are needed");
*OutExtensionCount = 3;
}
else
{
LOG_INFO("returning no extensions are needed");
*OutExtensionCount = 0;
}
LOG_INFO("returning 3 extensions are needed");
*OutExtensionCount = 3;
}
else
{
LOG_INFO("returning no extensions are needed");
*OutExtensionCount = 0;
}
}
else if (*OutExtensionCount == 3 && Config::Instance()->VulkanExtensionSpoofing.value_or(false))
+1 -1
View File
@@ -21,7 +21,7 @@
#define VER_MAJOR_VERSION 0
#define VER_MINOR_VERSION 7
#define VER_HOTFIX_VERSION 0
#define VER_BUILD_NUMBER 71
#define VER_BUILD_NUMBER 72
#define VER_PRE_RELEASE