mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 21:31:04 +00:00
vk_pipeline_cache: Log pipeline creation. (#3544)
This commit is contained in:
@@ -274,6 +274,9 @@ const GraphicsPipeline* PipelineCache::GetGraphicsPipeline() {
|
|||||||
}
|
}
|
||||||
const auto [it, is_new] = graphics_pipelines.try_emplace(graphics_key);
|
const auto [it, is_new] = graphics_pipelines.try_emplace(graphics_key);
|
||||||
if (is_new) {
|
if (is_new) {
|
||||||
|
const auto pipeline_hash = std::hash<GraphicsPipelineKey>{}(graphics_key);
|
||||||
|
LOG_INFO(Render, "Compiling graphics pipeline {:#x}", pipeline_hash);
|
||||||
|
|
||||||
it.value() = std::make_unique<GraphicsPipeline>(instance, scheduler, desc_heap, profile,
|
it.value() = std::make_unique<GraphicsPipeline>(instance, scheduler, desc_heap, profile,
|
||||||
graphics_key, *pipeline_cache, infos,
|
graphics_key, *pipeline_cache, infos,
|
||||||
runtime_infos, fetch_shader, modules);
|
runtime_infos, fetch_shader, modules);
|
||||||
@@ -295,6 +298,9 @@ const ComputePipeline* PipelineCache::GetComputePipeline() {
|
|||||||
}
|
}
|
||||||
const auto [it, is_new] = compute_pipelines.try_emplace(compute_key);
|
const auto [it, is_new] = compute_pipelines.try_emplace(compute_key);
|
||||||
if (is_new) {
|
if (is_new) {
|
||||||
|
const auto pipeline_hash = std::hash<ComputePipelineKey>{}(compute_key);
|
||||||
|
LOG_INFO(Render, "Compiling compute pipeline {:#x}", pipeline_hash);
|
||||||
|
|
||||||
it.value() =
|
it.value() =
|
||||||
std::make_unique<ComputePipeline>(instance, scheduler, desc_heap, profile,
|
std::make_unique<ComputePipeline>(instance, scheduler, desc_heap, profile,
|
||||||
*pipeline_cache, compute_key, *infos[0], modules[0]);
|
*pipeline_cache, compute_key, *infos[0], modules[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user