You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Adding IVulkanDynamicRHI interface for plugins that want to touch Vulkan resources/handles directly. - Modifying plugins that were using VulkanRHIPrivate.h to use the interface instead. - Removing plugin references to UE Modules and ThirdParty libraries that were only needed because they included the private RHI headers. - Removing VulkanRHI/Private from plugin include paths. - Deprecating VulkanRHIBridge and moved its functionality into the new interface. #jira none #rb jeannoe.morissette, mihnea.balta, robert.srinivasiah #preflight 62281ec531133a23da642007 #robomerge FNNC [CL 19320995 by christopher waters in ue5-main branch]
44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System;
|
|
using System.IO;
|
|
using UnrealBuildTool;
|
|
using System.Globalization;
|
|
|
|
public class CUDA : ModuleRules
|
|
{
|
|
public CUDA(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
PrivateDependencyModuleNames.AddRange(new string[] {
|
|
"Core",
|
|
"RenderCore",
|
|
"RHI",
|
|
"Engine",
|
|
});
|
|
|
|
PublicDependencyModuleNames.Add("CUDAHeader");
|
|
|
|
if (Target.IsInPlatformGroup(UnrealPlatformGroup.Windows) || Target.IsInPlatformGroup(UnrealPlatformGroup.Unix))
|
|
{
|
|
PublicDefinitions.Add("PLATFORM_SUPPORTS_CUDA=1");
|
|
var EngineDir = Path.GetFullPath(Target.RelativeEnginePath);
|
|
|
|
PrivateIncludePathModuleNames.Add("VulkanRHI");
|
|
|
|
if (Target.IsInPlatformGroup(UnrealPlatformGroup.Unix))
|
|
{
|
|
}
|
|
else if (Target.IsInPlatformGroup(UnrealPlatformGroup.Windows))
|
|
{
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "DX11", "DX12");
|
|
}
|
|
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "Vulkan");
|
|
}
|
|
else
|
|
{
|
|
PublicDefinitions.Add("PLATFORM_SUPPORTS_CUDA=0");
|
|
}
|
|
}
|
|
}
|