refactor(srp): move core stage defaults into universal renderer
This commit is contained in:
@@ -16,6 +16,11 @@ struct CameraFrameFullscreenStagePlan {
|
||||
CameraFrameColorSource source = CameraFrameColorSource::ExplicitSurface;
|
||||
};
|
||||
|
||||
struct CameraFrameStandaloneStagePlan {
|
||||
bool requested = false;
|
||||
bool explicitlyConfigured = false;
|
||||
};
|
||||
|
||||
struct CameraFrameColorChainPlan {
|
||||
bool usesGraphManagedSceneColor = false;
|
||||
CameraFrameFullscreenStagePlan postProcess = {};
|
||||
@@ -35,6 +40,7 @@ struct CameraFramePlan {
|
||||
RenderPassSequence* preScenePasses = nullptr;
|
||||
RenderPassSequence* postScenePasses = nullptr;
|
||||
RenderPassSequence* overlayPasses = nullptr;
|
||||
CameraFrameStandaloneStagePlan shadowCasterStage = {};
|
||||
CameraFrameColorChainPlan colorChain = {};
|
||||
RenderSurface graphManagedSceneSurface = {};
|
||||
|
||||
@@ -64,8 +70,14 @@ struct CameraFramePlan {
|
||||
void ClearFullscreenStage(
|
||||
CameraFrameStage stage,
|
||||
bool explicitlyConfigured = false);
|
||||
bool RequestShadowCasterStage(
|
||||
bool explicitlyConfigured = false);
|
||||
void ClearShadowCasterStage(
|
||||
bool explicitlyConfigured = false);
|
||||
bool HasExplicitFullscreenStageConfiguration(
|
||||
CameraFrameStage stage) const;
|
||||
bool HasExplicitShadowCasterStageConfiguration() const;
|
||||
bool IsShadowCasterStageRequested() const;
|
||||
bool IsPostProcessStageValid() const;
|
||||
bool IsFinalOutputStageValid() const;
|
||||
bool HasFrameStage(CameraFrameStage stage) const;
|
||||
|
||||
Reference in New Issue
Block a user