diff --git a/Source/ExtendedGraphicsProgramming/ExtendedGraphicsProgramming.Build.cs b/Source/ExtendedGraphicsProgramming/ExtendedGraphicsProgramming.Build.cs index 9e923da..617c473 100644 --- a/Source/ExtendedGraphicsProgramming/ExtendedGraphicsProgramming.Build.cs +++ b/Source/ExtendedGraphicsProgramming/ExtendedGraphicsProgramming.Build.cs @@ -1,21 +1,33 @@ using UnrealBuildTool; +using System.IO; public class ExtendedGraphicsProgramming : ModuleRules { public ExtendedGraphicsProgramming(ReadOnlyTargetRules Target) : base(Target) { PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; - - PublicDependencyModuleNames.AddRange(new string[] { - "Core" + + PrivateIncludePaths.AddRange( + new string[] + { + // … add other private include paths required here … + Path.Combine(GetModuleDirectory("Renderer"), "Internal"), + Path.Combine(GetModuleDirectory("Renderer"), "Private") + } + ); + + PublicDependencyModuleNames.AddRange(new string[] + { + "Core", "Engine" }); - PrivateDependencyModuleNames.AddRange(new string[] { + PrivateDependencyModuleNames.AddRange(new string[] + { "CoreUObject", "Projects", "Engine", "Slate", - "SlateCore", + "SlateCore", "Renderer", "RenderCore", "RHICore", "RHI" }); } -} +} \ No newline at end of file diff --git a/Source/ExtendedGraphicsProgramming/Private/EGP_CustomRenderPasses.cpp b/Source/ExtendedGraphicsProgramming/Private/EGP_CustomRenderPasses.cpp index 4944181..84795bc 100644 --- a/Source/ExtendedGraphicsProgramming/Private/EGP_CustomRenderPasses.cpp +++ b/Source/ExtendedGraphicsProgramming/Private/EGP_CustomRenderPasses.cpp @@ -1,8 +1,9 @@ #include "EGP_CustomRenderPasses.h" -#include "Engine/TextureRenderTarget.h" #include "SceneViewExtensionContext.h" +#include "TextureResource.h" #include "Algo/AllOf.h" +#include "Components/PrimitiveComponent.h" bool U_EGP_ViewFilter::ShouldRenderFor(const FViewport* viewport) const @@ -83,7 +84,7 @@ void U_EGP_ViewFilter::RemoveByRenderTarget(UTextureRenderTarget* rt) } else { - auto* resource = rt->GameThread_GetRenderTargetResource(); + FTextureRenderTargetResource* resource = rt->GameThread_GetRenderTargetResource(); //Don't interpret an uninitialized resource as a reference to all null render-targets! if (resource != nullptr) RemoveByRenderTarget(resource); diff --git a/Source/ExtendedGraphicsProgramming/Private/ExtendedGraphicsProgramming.cpp b/Source/ExtendedGraphicsProgramming/Private/ExtendedGraphicsProgramming.cpp index 047fc95..88529a3 100644 --- a/Source/ExtendedGraphicsProgramming/Private/ExtendedGraphicsProgramming.cpp +++ b/Source/ExtendedGraphicsProgramming/Private/ExtendedGraphicsProgramming.cpp @@ -1,6 +1,8 @@ #include "ExtendedGraphicsProgramming.h" +#include "ShaderCore.h" #include "Interfaces/IPluginManager.h" +#include "Misc/Paths.h" #define LOCTEXT_NAMESPACE "FExtendedGraphicsProgrammingModule" diff --git a/Source/ExtendedGraphicsProgramming/Public/EGP_CustomRenderPasses.h b/Source/ExtendedGraphicsProgramming/Public/EGP_CustomRenderPasses.h index c6c6093..a015ad8 100644 --- a/Source/ExtendedGraphicsProgramming/Public/EGP_CustomRenderPasses.h +++ b/Source/ExtendedGraphicsProgramming/Public/EGP_CustomRenderPasses.h @@ -1,10 +1,13 @@ #pragma once +#include + #include "CoreMinimal.h" #include "SceneViewExtension.h" #include "Runtime/Renderer/Private/SceneRendering.h" #include "ExtendedGraphicsProgramming.h" +#include "Engine/TextureRenderTarget.h" #include "EGP_CustomRenderPasses.generated.h" diff --git a/Source/ExtendedGraphicsProgramming/Public/EGP_GetMaterialShader.h b/Source/ExtendedGraphicsProgramming/Public/EGP_GetMaterialShader.h index 60be6ee..9dbf3cf 100644 --- a/Source/ExtendedGraphicsProgramming/Public/EGP_GetMaterialShader.h +++ b/Source/ExtendedGraphicsProgramming/Public/EGP_GetMaterialShader.h @@ -1,9 +1,12 @@ #pragma once #include "CoreMinimal.h" +#include "MaterialDomain.h" +#include "MaterialShaderType.h" +#include "MaterialShared.h" +#include "Materials/Material.h" #include "Materials/MaterialRenderProxy.h" - namespace EGP { //A potential fallback material that could render your shaders. diff --git a/Source/ExtendedGraphicsProgramming/Public/EGP_GetMeshBatches.h b/Source/ExtendedGraphicsProgramming/Public/EGP_GetMeshBatches.h index 88b2eb9..d7d85c2 100644 --- a/Source/ExtendedGraphicsProgramming/Public/EGP_GetMeshBatches.h +++ b/Source/ExtendedGraphicsProgramming/Public/EGP_GetMeshBatches.h @@ -2,6 +2,7 @@ #include "CoreMinimal.h" #include "PrimitiveSceneInfo.h" +#include "PrimitiveSceneProxy.h" #include "Runtime/Renderer/Private/SceneRendering.h" namespace EGP diff --git a/Source/ExtendedGraphicsProgramming/Public/EGP_PostProcessMaterialShaders.h b/Source/ExtendedGraphicsProgramming/Public/EGP_PostProcessMaterialShaders.h index c55087d..2668f18 100644 --- a/Source/ExtendedGraphicsProgramming/Public/EGP_PostProcessMaterialShaders.h +++ b/Source/ExtendedGraphicsProgramming/Public/EGP_PostProcessMaterialShaders.h @@ -4,7 +4,7 @@ #include "MaterialDomain.h" #include "PostProcess/PostProcessMaterialInputs.h" #include "Runtime/Renderer/Private/SceneRendering.h" - +#include "Runtime/Launch/Resources/Version.h" #include "EGP_GetMaterialShader.h" /*