mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-15 21:27:00 +02:00
[vk] Exception modified & logged
This commit is contained in:
parent
9800c47966
commit
9e1414ebfa
1 changed files with 8 additions and 0 deletions
|
|
@ -818,6 +818,10 @@ std::unique_ptr<GraphicsPipeline> PipelineCache::CreateGraphicsPipeline(
|
||||||
}
|
}
|
||||||
LOG_ERROR(Render_Vulkan, "{}", exception.what());
|
LOG_ERROR(Render_Vulkan, "{}", exception.what());
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
} catch (const vk::Exception& exception) {
|
||||||
|
LOG_ERROR(Render_Vulkan, "Failed to create graphics pipeline 0x{:016x}: {}", key.Hash(),
|
||||||
|
exception.what());
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<GraphicsPipeline> PipelineCache::CreateGraphicsPipeline() {
|
std::unique_ptr<GraphicsPipeline> PipelineCache::CreateGraphicsPipeline() {
|
||||||
|
|
@ -909,6 +913,10 @@ std::unique_ptr<ComputePipeline> PipelineCache::CreateComputePipeline(
|
||||||
} catch (const Shader::Exception& exception) {
|
} catch (const Shader::Exception& exception) {
|
||||||
LOG_ERROR(Render_Vulkan, "{}", exception.what());
|
LOG_ERROR(Render_Vulkan, "{}", exception.what());
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
} catch (const vk::Exception& exception) {
|
||||||
|
LOG_ERROR(Render_Vulkan, "Failed to create compute pipeline 0x{:016x}: {}", key.Hash(),
|
||||||
|
exception.what());
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PipelineCache::SerializeVulkanPipelineCache(const std::filesystem::path& filename,
|
void PipelineCache::SerializeVulkanPipelineCache(const std::filesystem::path& filename,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue