NcStudios / NcEngine

NcEngine: 3D game engine written in modern C++ and Vulkan
https://ncstudios.itch.io/
MIT License
36 stars 2 forks source link

Set dependencies within task phases #611

Closed McCallisterRomer closed 1 month ago

McCallisterRomer commented 2 months ago

With the exception of ExecutionPhase/UpdatePhase::Free, we only ever schedule one task or graph on each phase. Due to this, we've never needed to set dependencies within a phase, but this will have to change. We probably want a priority value on add (like Signal) so we have some way to control where a task is inserted. UpdatePhase::Free should continue to have no dependencies, as the whole point is to run all of that parallel to everything.