Rasagar/Library/PackageCache/com.unity.render-pipelines.high-definition/Editor/RenderPipeline/Settings/RenderPipelineSettingsUtilities.cs
2024-08-26 23:07:20 +03:00

20 lines
603 B
C#

using System.Collections.Generic;
using System.Linq;
namespace UnityEditor.Rendering.HighDefinition
{
static class RenderPipelineSettingsUtilities
{
public static IEnumerable<string> RemoveDLSSKeywords(IEnumerable<string> keywords)
{
#if ENABLE_NVIDIA && !ENABLE_NVIDIA_MODULE
// Case 1358409 workaround:
// Remove all DLSS keyword when the NVIDIA package is not installed.
return keywords.Where(keyword => keyword.IndexOf("dlss", System.StringComparison.OrdinalIgnoreCase) == -1);
#else
return keywords;
#endif
}
}
}