[D3D12] Submit command lists on primary buffer end

This commit is contained in:
Triang3l
2019-12-04 21:42:26 +03:00
parent 922f1f220a
commit c43ccc073d
6 changed files with 34 additions and 0 deletions

View File

@@ -172,6 +172,14 @@ void PipelineCache::EndSubmission() {
}
}
bool PipelineCache::IsCreatingPipelines() {
if (creation_threads_.empty()) {
return false;
}
std::lock_guard<std::mutex> lock(creation_request_lock_);
return !creation_queue_.empty() || creation_threads_busy_ != 0;
}
D3D12Shader* PipelineCache::LoadShader(ShaderType shader_type,
uint32_t guest_address,
const uint32_t* host_address,