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