refactor(rendering): add callback helpers for common graph pass contracts

This commit is contained in:
2026-04-15 12:55:51 +08:00
parent 1d207cf251
commit 8aee665d32
2 changed files with 23 additions and 6 deletions

View File

@@ -59,5 +59,27 @@ inline bool RecordColorDepthRasterPass(
BuildColorDepthRasterPassGraphIO());
}
inline bool RecordSourceColorFullscreenCallbackRasterPass(
const RenderPassRenderGraphContext& context,
RenderPassGraphExecutePassCallback executePassCallback,
std::vector<RenderGraphTextureHandle> additionalReadTextures = {}) {
return RecordCallbackRasterRenderPass(
context,
BuildSourceColorFullscreenRasterPassGraphIO(),
std::move(executePassCallback),
std::move(additionalReadTextures));
}
inline bool RecordColorDepthCallbackRasterPass(
const RenderPassRenderGraphContext& context,
RenderPassGraphExecutePassCallback executePassCallback,
std::vector<RenderGraphTextureHandle> additionalReadTextures = {}) {
return RecordCallbackRasterRenderPass(
context,
BuildColorDepthRasterPassGraphIO(),
std::move(executePassCallback),
std::move(additionalReadTextures));
}
} // namespace Rendering
} // namespace XCEngine