mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-22 21:50:06 +00:00
vk_renderpass_cache: Bump pixel format count
This commit is contained in:
parent
edd8de29ae
commit
85dd604a7e
@ -91,12 +91,8 @@ bool GraphicsPipeline::TryBuild(bool wait_built) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fallback to (a)synchronous compilation
|
// Fallback to (a)synchronous compilation
|
||||||
if (worker) {
|
|
||||||
worker->QueueWork([this] { Build(); });
|
worker->QueueWork([this] { Build(); });
|
||||||
is_pending = true;
|
is_pending = true;
|
||||||
} else {
|
|
||||||
Build();
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ bool PipelineCache::BindPipeline(const PipelineInfo& info, bool wait_built) {
|
|||||||
if (new_pipeline) {
|
if (new_pipeline) {
|
||||||
it.value() = std::make_unique<GraphicsPipeline>(
|
it.value() = std::make_unique<GraphicsPipeline>(
|
||||||
instance, renderpass_cache, info, *pipeline_cache, *pipeline_layout, current_shaders,
|
instance, renderpass_cache, info, *pipeline_cache, *pipeline_layout, current_shaders,
|
||||||
wait_built ? nullptr : &workers);
|
&workers);
|
||||||
}
|
}
|
||||||
|
|
||||||
GraphicsPipeline* const pipeline{it->second.get()};
|
GraphicsPipeline* const pipeline{it->second.get()};
|
||||||
|
@ -35,7 +35,7 @@ struct RenderPass {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class RenderpassCache {
|
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;
|
static constexpr size_t MAX_DEPTH_FORMATS = 4;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user