KhronosGroup / KhronosGroup/Vulkan-Tutorial

Is the RenderGraph example code reversing execution order?

未关闭
#362 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Game Engine
主要语言
C++
星标
418
派生
126
平均合并
11 天 6 小时
30 天内合并 PR
31

描述

In this page:
https://docs.vulkan.org/tutorial/latest/Building_a_Simple_Engine/Engine_Architecture/05_rendering_pipeline.html#_rendergraph_dependency_analysis_and_execution_ordering

It's doing
```
for (auto dependent : dependents[node]) {
visit(dependent);
}
```

However doesn't that mean that the dependents will be executed first, before the pass that they depend on has executed. Shouldn't this be looping on `dependencies`?

贡献指南

打开贡献指南

调研方向

Read the RenderGraph dependency analysis and execution ordering section at the linked documentation page, focusing on the shown loop over dependents. Trace the dependency direction and execution-order explanation to determine whether the example is reversed; done means the code and accompanying text consistently describe the correct ordering.

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
computer-graphics, documentation
Issue 类型
文档
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。