Fixing some descriptor binding stuff, made it work

This commit is contained in:
Dynamitos committed 2024-05-18 21:23:59 +02:00
1 parent 60d2164987
commit 838bd69fa7
18 files changed
+171 -174

No files matched your search

+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
{