vk_graphics_pipeline: Only fast compile if no shaders are pending

* With this shaders weren't being compiled in parallel
This commit is contained in:
GPUCode
2023-08-22 00:16:57 +03:00
parent 631c777983
commit 9e7ae03b6c

View File

@ -88,7 +88,7 @@ bool GraphicsPipeline::TryBuild(bool wait_built) {
}
// Ask the driver if it can give us the pipeline quickly.
if (!wait_built && instance.IsPipelineCreationCacheControlSupported() && Build(true)) {
if (!shaders_pending && instance.IsPipelineCreationCacheControlSupported() && Build(true)) {
return true;
}