vk_renderpass_cache: Bump pixel format count

This commit is contained in:
GPUCode 2023-08-11 03:33:15 +03:00
parent edd8de29ae
commit 85dd604a7e
3 changed files with 4 additions and 8 deletions

View file

@ -91,12 +91,8 @@ bool GraphicsPipeline::TryBuild(bool wait_built) {
}
// Fallback to (a)synchronous compilation
if (worker) {
worker->QueueWork([this] { Build(); });
is_pending = true;
} else {
Build();
}
worker->QueueWork([this] { Build(); });
is_pending = true;
return true;
}

View file

@ -185,7 +185,7 @@ bool PipelineCache::BindPipeline(const PipelineInfo& info, bool wait_built) {
if (new_pipeline) {
it.value() = std::make_unique<GraphicsPipeline>(
instance, renderpass_cache, info, *pipeline_cache, *pipeline_layout, current_shaders,
wait_built ? nullptr : &workers);
&workers);
}
GraphicsPipeline* const pipeline{it->second.get()};

View file

@ -35,7 +35,7 @@ struct RenderPass {
};
class RenderpassCache {
static constexpr size_t MAX_COLOR_FORMATS = 5;
static constexpr size_t MAX_COLOR_FORMATS = 13;
static constexpr size_t MAX_DEPTH_FORMATS = 4;
public: