refactor(srp): remove managed frame planning hook
- derive fullscreen stage planning from pipeline render-graph support - trim planning-only APIs from the managed SRP bridge and public surface - update probes and tests to lock the slimmer SRP API boundary
This commit is contained in:
@@ -766,15 +766,6 @@ namespace Gameplay
|
||||
postProcessScale);
|
||||
}
|
||||
|
||||
protected override void ConfigureCameraFramePlan(
|
||||
ScriptableRenderPipelinePlanningContext context)
|
||||
{
|
||||
context.ClearFullscreenStage(CameraFrameStage.PostProcess);
|
||||
context.RequestFullscreenStage(
|
||||
CameraFrameStage.PostProcess,
|
||||
CameraFrameColorSource.MainSceneColor,
|
||||
false);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class ManagedPlannedFullscreenRenderPipelineProbeAsset
|
||||
@@ -785,19 +776,6 @@ namespace Gameplay
|
||||
return new ManagedPlannedFullscreenRenderPipelineProbe();
|
||||
}
|
||||
|
||||
protected override void ConfigureCameraFramePlan(
|
||||
ScriptableRenderPipelinePlanningContext context)
|
||||
{
|
||||
context.ClearFullscreenStage(CameraFrameStage.PostProcess);
|
||||
context.ClearFullscreenStage(CameraFrameStage.FinalOutput);
|
||||
context.RequestFullscreenStage(
|
||||
CameraFrameStage.PostProcess,
|
||||
CameraFrameColorSource.MainSceneColor,
|
||||
true);
|
||||
context.RequestFullscreenStage(
|
||||
CameraFrameStage.FinalOutput,
|
||||
CameraFrameColorSource.PostProcessColor);
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed class ManagedCameraRequestConfiguredRendererData
|
||||
@@ -877,19 +855,6 @@ namespace Gameplay
|
||||
return new ManagedRenderContextStageColorDataProbe();
|
||||
}
|
||||
|
||||
protected override void ConfigureCameraFramePlan(
|
||||
ScriptableRenderPipelinePlanningContext context)
|
||||
{
|
||||
context.ClearFullscreenStage(CameraFrameStage.PostProcess);
|
||||
context.ClearFullscreenStage(CameraFrameStage.FinalOutput);
|
||||
context.RequestFullscreenStage(
|
||||
CameraFrameStage.PostProcess,
|
||||
CameraFrameColorSource.MainSceneColor,
|
||||
true);
|
||||
context.RequestFullscreenStage(
|
||||
CameraFrameStage.FinalOutput,
|
||||
CameraFrameColorSource.PostProcessColor);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class ManagedRenderPipelineProbe
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System.Reflection;
|
||||
using XCEngine;
|
||||
using XCEngine.Rendering;
|
||||
using XCEngine.Rendering.Renderer;
|
||||
|
||||
namespace Gameplay
|
||||
{
|
||||
@@ -19,6 +20,9 @@ namespace Gameplay
|
||||
public bool HasPublicContextStageColorData;
|
||||
public bool HasPublicCameraRequestContextHasDirectionalShadow;
|
||||
public bool HasPublicCameraRequestContextClearDirectionalShadow;
|
||||
public bool HasPublicPipelineAssetConfigureCameraFramePlan;
|
||||
public bool HasPlanningContextType;
|
||||
public bool HasRendererFeatureConfigureCameraFramePlan;
|
||||
public bool HasRendererRecordingContextType;
|
||||
public bool HasRendererCameraRequestContextType;
|
||||
|
||||
@@ -30,6 +34,10 @@ namespace Gameplay
|
||||
typeof(ScriptableRenderContext);
|
||||
System.Type cameraRequestContextType =
|
||||
typeof(ScriptableRenderPipelineCameraRequestContext);
|
||||
System.Type pipelineAssetType =
|
||||
typeof(ScriptableRenderPipelineAsset);
|
||||
System.Type rendererFeatureType =
|
||||
typeof(ScriptableRendererFeature);
|
||||
|
||||
HasPublicContextRecordScene =
|
||||
contextType.GetMethod(
|
||||
@@ -79,6 +87,21 @@ namespace Gameplay
|
||||
cameraRequestContextType.GetMethod(
|
||||
"ClearDirectionalShadow",
|
||||
PublicInstanceMethodFlags) != null;
|
||||
HasPublicPipelineAssetConfigureCameraFramePlan =
|
||||
pipelineAssetType.GetMethod(
|
||||
"ConfigureCameraFramePlan",
|
||||
BindingFlags.Instance |
|
||||
BindingFlags.Public |
|
||||
BindingFlags.NonPublic) != null;
|
||||
HasPlanningContextType =
|
||||
contextType.Assembly.GetType(
|
||||
"XCEngine.Rendering.ScriptableRenderPipelinePlanningContext") != null;
|
||||
HasRendererFeatureConfigureCameraFramePlan =
|
||||
rendererFeatureType.GetMethod(
|
||||
"ConfigureCameraFramePlan",
|
||||
BindingFlags.Instance |
|
||||
BindingFlags.Public |
|
||||
BindingFlags.NonPublic) != null;
|
||||
HasRendererRecordingContextType =
|
||||
System.Type.GetType(
|
||||
"XCEngine.Rendering.Renderer.RendererRecordingContext, XCEngine.RenderPipelines.Universal") != null;
|
||||
|
||||
Reference in New Issue
Block a user