add block 'ambient-occlusion' property

This commit is contained in:
MihailRis
2024-07-27 18:37:18 +03:00
parent f485ba5e54
commit 71e20ff805
10 changed files with 149 additions and 53 deletions
+5 -1
View File
@@ -200,7 +200,7 @@ public:
}
}
void enqueueJob(std::shared_ptr<T> job) {
void enqueueJob(const std::shared_ptr<T>& job) {
{
std::lock_guard<std::mutex> lock(jobsMutex);
jobs.push(job);
@@ -244,6 +244,10 @@ public:
update();
}
}
uint getWorkersCount() const {
return threads.size();
}
};
} // namespace util
+5 -5
View File
@@ -20,11 +20,11 @@ namespace timeutil {
* ...
* }
*/
class ScopeLogTimer : public Timer{
long long scopeid_;
public:
ScopeLogTimer(long long id);
~ScopeLogTimer();
class ScopeLogTimer : public Timer {
long long scopeid_;
public:
ScopeLogTimer(long long id);
~ScopeLogTimer();
};
inline constexpr float time_value(float hour, float minute, float second) {