You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb joe.kirchoff #preflight 63cf0f5af2318350a220c710 #jira [CL 23824085 by bryan sefcik in ue5-main branch]
49 lines
1.6 KiB
C#
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"));
|
|
}
|
|
}
|