Files
UnrealEngineUWP/Engine/Source/Developer/Windows/ShaderFormatD3D/ShaderFormatD3D.Build.cs
bryan sefcik 1309f08d58 Added helper functions to the DirectX module that returns paths to the DirectX include, lib and dll directories.
#rb joe.kirchoff
#preflight 63cf0f5af2318350a220c710
#jira

[CL 23824085 by bryan sefcik in ue5-main branch]
2023-01-23 18:19:13 -05:00

49 lines
1.6 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.IO;
public class ShaderFormatD3D : ModuleRules
{
public ShaderFormatD3D(ReadOnlyTargetRules Target) : base(Target)
{
PrivateIncludePathModuleNames.Add("TargetPlatform");
PrivateIncludePathModuleNames.Add("D3D11RHI");
PrivateIncludePathModuleNames.Add("D3D12RHI");
PrivateIncludePaths.Add("../Shaders/Shared");
PrivateDependencyModuleNames.AddRange(
new string[] {
"Core",
"RenderCore",
"ShaderPreprocessor",
"ShaderCompilerCommon",
}
);
// DXC
if (Target.Platform == UnrealTargetPlatform.Win64)
{
string AmdAgsPath = Target.UEThirdPartySourceDirectory + "AMD/AMD_AGS/";
PublicSystemIncludePaths.Add(AmdAgsPath + "inc/"); // For amd_ags.h, to get AGS_DX12_SHADER_INSTRINSICS_SPACE_ID
RuntimeDependencies.Add(Path.Combine(DirectX.GetDllDir(Target), "d3dcompiler_47.dll"));
string ShaderConductorDllsPath = Path.Combine(Target.UEThirdPartyBinariesDirectory, "ShaderConductor/Win64");
RuntimeDependencies.Add(Path.Combine(ShaderConductorDllsPath, "dxcompiler.dll"));
RuntimeDependencies.Add(Path.Combine(ShaderConductorDllsPath, "ShaderConductor.dll"));
RuntimeDependencies.Add(Path.Combine(ShaderConductorDllsPath, "dxil.dll"));
AddEngineThirdPartyPrivateStaticDependencies(Target,
"ShaderConductor"
);
}
AddEngineThirdPartyPrivateStaticDependencies(Target, "DX11");
// DXC API headers
PublicSystemIncludePaths.Add(Path.Combine(Target.UEThirdPartySourceDirectory, "ShaderConductor", "ShaderConductor", "External", "DirectXShaderCompiler", "include"));
}
}