refactor(rendering): infer raster pass graph io from declared context
This commit is contained in:
@@ -779,17 +779,9 @@ public:
|
||||
lastRecordedBlackboardMainSceneColorValid = false;
|
||||
lastRecordedBlackboardPostProcessColorValid = false;
|
||||
}
|
||||
const bool writesColor =
|
||||
context.sourceSurface != nullptr ||
|
||||
!context.colorTargets.empty();
|
||||
return RecordRasterRenderPass(
|
||||
return RecordDeclaredRasterPass(
|
||||
*this,
|
||||
context,
|
||||
{
|
||||
context.sourceSurface != nullptr,
|
||||
writesColor,
|
||||
context.depthTarget.IsValid()
|
||||
});
|
||||
context);
|
||||
}
|
||||
|
||||
bool Initialize(const RenderContext&) override {
|
||||
|
||||
Reference in New Issue
Block a user