Skip to content

Commit c83d115

Browse files
authored
Partner/crazyhunter 10.7.0 custom.1 rendergraph influencemap (#47)
* Test InfluenceMap on RenderGraph * Disable RG as the default
1 parent f9c8a62 commit c83d115

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.Callbacks.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public partial class HDRenderPipeline : RenderPipeline
7474
public static event Action<Camera, RenderTexture> OnScreenshotCapture;
7575
// public static event Action<ScriptableRenderContext, Camera> OnNoesisBeginCameraRendering;
7676
// public static event Action<ScriptableRenderContext, Camera> OnNoesisEndCameraRendering;
77+
public static event Action<HDCamera, RenderGraph> OnRenderGraphBegin;
7778

7879
}
7980
}

com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ internal bool showCascade
356356
internal static bool enableNonRenderGraphTests { get => Array.Exists(Environment.GetCommandLineArgs(), arg => arg == "-non-rendergraph-tests"); }
357357
RenderGraph m_RenderGraph = new RenderGraph("HDRPGraph");
358358
bool m_EnableRenderGraph = true;
359+
public bool RenderGraphEnabled { get { return m_EnableRenderGraph; } }
359360

360361
// MSAA resolve materials
361362
Material m_ColorResolveMaterial = null;
@@ -608,7 +609,7 @@ public HDRenderPipeline(HDRenderPipelineAsset asset, HDRenderPipelineAsset defau
608609
// custom-begin:
609610
// Force non-rendergraph path, until we have refactored all custom rendering code, and probe volumes to be compatible with the RenderGraph path.
610611
//
611-
// EnableRenderGraph(defaultAsset.useRenderGraph && !enableNonRenderGraphTests);
612+
//EnableRenderGraph(defaultAsset.useRenderGraph && !enableNonRenderGraphTests);
612613
ProbeVolumeDynamicGI.instance.Allocate(defaultResources);
613614
EnableRenderGraph(false);
614615
// custom-end
@@ -2577,6 +2578,9 @@ AOVRequestData aovRequest
25772578
if (m_EnableRenderGraph)
25782579
{
25792580
BeginRenderGraph(renderContext, cmd);
2581+
2582+
if (OnRenderGraphBegin != null)
2583+
OnRenderGraphBegin(hdCamera, m_RenderGraph);
25802584
}
25812585

25822586
// Frustum cull density volumes on the CPU. Can be performed as soon as the camera is set up.

0 commit comments

Comments
 (0)