Files
UnrealEngineUWP/Engine/Source/Developer/Windows/ShaderFormatD3D/ShaderFormatD3D.Build.cs
Lukas Hermanns a4dfdcd0ad Moved dxil.dll from DirectX folder into ShaderConductor binary folder and load dxil.dll manually to ensure it's always loaded from that location.
#rb Yuriy.ODonnell, Emil.Persson, Kenzo.Terelst
#fyi Mihnea.Balta, Rolando.Caloca, Graham.Wihlidal
#jira none
#rnx

[CL 15337426 by Lukas Hermanns in ue5-main branch]
2021-02-05 10:29:11 -04:00

47 lines
1.5 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
string DxDllsPath = "$(EngineDir)/Binaries/ThirdParty/Windows/DirectX/x64";
RuntimeDependencies.Add(Path.Combine(DxDllsPath, "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");
}
}