KhronosGroup / KhronosGroup/Vulkan-Tutorial

Is the RenderGraph example code reversing execution order?

Offen
#362 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Game Engine
Vorherrschende Sprache
C++
Sterne
418
Forks
126
Ø Merge
11 T. 6 Std.
Gemergte PRs (30 T.)
31

Beschreibung

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`?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cpp
Bereich
computer-graphics, documentation
Issue-Typ
Dokumentation
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.