Fixing some descriptor binding stuff, made it work

This commit is contained in:
Dynamitos
2024-05-18 21:23:59 +02:00
parent 60d2164987
commit 838bd69fa7
18 changed files with 171 additions and 174 deletions
+4 -4
View File
@@ -26,14 +26,14 @@ public:
template<typename... Deps>
void setupView(Dependencies<Deps...>)
{
List<std::function<void()>> work;
//List<std::function<void()>> work;
registry.view<Components..., Deps...>().each([&](Components&... comp, Deps&... deps){
work.add([&]() {
//work.add([&]() {
(accessComponent(deps), ...);
update(comp...);
});
//});
});
getThreadPool().runAndWait(std::move(work));
//getThreadPool().runAndWait(std::move(work));
}
virtual void run(double delta) override
{