This commit is contained in:
2026-09-25 20:22:29 -07:00
parent 4ebae57cf8
commit 0d145f615d
10 changed files with 100 additions and 16 deletions
+3 -1
View File
@@ -67,7 +67,8 @@ class RenderGraph {
/**
* Adds a pass. `setup` runs immediately and declares what the pass does to
* images; `execute` runs later, from execute(), with the barriers already
* recorded and (if the pass writes color) rendering begun.
* recorded and (if the pass writes color) rendering begun. `name` labels
* the pass's commands in debugging tools such as RenderDoc.
*/
void addPass(std::string name, const SetupFn& setup, ExecuteFn execute);
@@ -112,6 +113,7 @@ class RenderGraph {
PendingBarriers& pending);
void flush(vk::CommandBuffer commandBuffer, PendingBarriers& pending);
void recordPass(vk::CommandBuffer commandBuffer, Pass& pass);
void recordRendering(vk::CommandBuffer commandBuffer, Pass& pass);
std::vector<ImportedImage> images;
std::vector<Pass> passes;