This commit is contained in:
C
2023-02-06 17:17:44 +05:00
parent 9d03a8eb1b
commit e9f3169a6f
804 changed files with 2798 additions and 24737 deletions
@@ -27,17 +27,14 @@ public class DLSSEditor : ModuleRules
PrivateIncludePaths.AddRange(
new string[] {
Path.Combine(EngineDirectory,"Source/Runtime/Renderer/Private"),
Path.Combine(EngineDirectory,"Source/Editor/LevelEditor/Private"),
Path.Combine(ModuleDirectory, "../DLSS/Private")
Path.Combine(GetModuleDirectory("DLSS"), "Private"),
Path.Combine(GetModuleDirectory("Renderer"), "Private"),
}
);
PublicDependencyModuleNames.AddRange(
new string[]
{
"DLSS",
}
);
@@ -47,38 +44,12 @@ public class DLSSEditor : ModuleRules
"Core",
"CoreUObject",
"Engine",
"RenderCore",
"Renderer",
"RHI",
"Settings",
"LevelEditor",
"ToolMenus",
"Slate",
"SlateCore",
"EditorWidgets",
"EditorStyle",
"InputCore",
"UnrealEd",
"Projects",
"NGX",
"DLSS",
"NGXRHI",
}
);
// We can't quite check whether we have CL 16509387 (in UE5-Release) so we do this in a round about way
bool bUseSlotsArgumentsAPI = (Target.Version.MajorVersion == 5) && (Target.Version.BranchName != "++UE5+Release-5.0-EarlyAccess");
PrivateDefinitions.Add(string.Format("USE_SLOT_SLOT_ARGUMENTS_API={0}", bUseSlotsArgumentsAPI ? "1" : "0"));
// We can't quite check whether we have CL 16848904 (in UE5-Main) so we do this in a round about way
bool bSupportsPostProcessingScreenPercentage = (Target.Version.MajorVersion == 4) ||
((Target.Version.MajorVersion == 5) && (Target.Version.BranchName == "++UE5+Release-5.0-EarlyAccess"))
;
PrivateDefinitions.Add(string.Format("SUPPORTS_POSTPROCESSING_SCREEN_PERCENTAGE={0}", bSupportsPostProcessingScreenPercentage ? "1" : "0"));
// 4.x and early access 5.0 engines had GTemporalUpscaler interface
bool bEngineHasGTemporalUpscaler = (Target.Version.MajorVersion == 4) || (Target.Version.BranchName == "++UE5+Release-5.0-EarlyAccess");
PrivateDefinitions.Add(string.Format("DLSS_ENGINE_HAS_GTEMPORALUPSCALER={0}", bEngineHasGTemporalUpscaler ? "1" : "0"));
}
}