feat(rendering): add managed fullscreen stage recording seam
This commit is contained in:
@@ -21,6 +21,14 @@ namespace Gameplay
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class ManagedPostProcessRenderPipelineProbeAsset : ScriptableRenderPipelineAsset
|
||||
{
|
||||
protected override ScriptableRenderPipeline CreatePipeline()
|
||||
{
|
||||
return new ManagedPostProcessRenderPipelineProbe();
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class ManagedRenderPipelineProbe : ScriptableRenderPipeline
|
||||
{
|
||||
public static int SupportsStageCallCount;
|
||||
@@ -57,6 +65,26 @@ namespace Gameplay
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class ManagedPostProcessRenderPipelineProbe : ScriptableRenderPipeline
|
||||
{
|
||||
protected override bool SupportsStageRenderGraph(
|
||||
CameraFrameStage stage)
|
||||
{
|
||||
return stage == CameraFrameStage.PostProcess;
|
||||
}
|
||||
|
||||
protected override bool RecordStageRenderGraph(
|
||||
ScriptableRenderContext context)
|
||||
{
|
||||
return context != null &&
|
||||
context.stage == CameraFrameStage.PostProcess &&
|
||||
context.RecordBuiltinColorScaleFullscreenPass(
|
||||
new Vector4(1.10f, 0.95f, 0.90f, 1.0f)) &&
|
||||
context.RecordBuiltinColorScaleFullscreenPass(
|
||||
new Vector4(0.95f, 1.05f, 1.10f, 1.0f));
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class RenderPipelineApiProbe : MonoBehaviour
|
||||
{
|
||||
public bool InitialTypeWasNull;
|
||||
|
||||
Reference in New Issue
Block a user