Add areShadersReady poll function

This commit is contained in:
Jack Andersen
2019-06-20 20:01:27 -10:00
parent e0674ff957
commit 8a181b96ce
4 changed files with 11 additions and 0 deletions

View File

@@ -248,6 +248,10 @@ public:
m_backcv.wait(lk, [this]() { return m_outstandingTasks == 0 || !m_running; });
}
bool isReady() {
return m_outstandingTasks == 0 || !m_running;
}
PipelineCompileQueue() {
unsigned int numThreads = std::thread::hardware_concurrency();
if (numThreads > 1)