From 6b69d4b5b648253f894707723af0e2eae9f71445 Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 29 Jul 2023 03:31:42 +0200 Subject: Move chunk reification to worker threads and set stage for chunk-unbound lighting --- src/Compute/Queue.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Compute/Queue.hpp') diff --git a/src/Compute/Queue.hpp b/src/Compute/Queue.hpp index 06469f8..e201932 100644 --- a/src/Compute/Queue.hpp +++ b/src/Compute/Queue.hpp @@ -25,6 +25,11 @@ public: m_control->work.jobs.emplace(id, priority, execute); } + USize size() const { + std::scoped_lock work_lock(m_control->work.mutex); + return m_control->work.jobs.size(); + } + struct Result { I id{}; X res; -- cgit 1.4.1