refactor(rendering): formalize common raster pass graph contracts

This commit is contained in:
2026-04-15 12:52:44 +08:00
parent c5dcfaedd5
commit 8645334e38
7 changed files with 65 additions and 42 deletions

View File

@@ -630,14 +630,9 @@ public:
bool RecordRenderGraph(const RenderPassRenderGraphContext& context) override {
m_state->eventLog.push_back("record:objectId");
return RecordRasterRenderPass(
return RecordColorDepthRasterPass(
*this,
context,
{
false,
true,
true
});
context);
}
bool Execute(const RenderPassContext& context) override {
@@ -688,14 +683,9 @@ public:
bool RecordRenderGraph(const RenderPassRenderGraphContext& context) override {
m_state->eventLog.push_back(std::string("record:") + m_label);
return RecordRasterRenderPass(
return RecordColorDepthRasterPass(
*this,
context,
{
false,
true,
true
});
context);
}
bool Initialize(const RenderContext&) override {