1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 22:24:13 +01:00

[dxvk] Use logger instead of exception when compiling pipelines

The exception is never caught because it is called from DXVK code,
not D3D code.
This commit is contained in:
Philip Rebohle 2018-01-31 00:48:39 +01:00
parent 4e1f9364e1
commit e47c244ac3
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 6 additions and 3 deletions

View File

@ -42,7 +42,7 @@ namespace dxvk {
if (m_vkd->vkCreateComputePipelines(m_vkd->device(),
m_cache->handle(), 1, &info, nullptr, &m_pipeline) != VK_SUCCESS)
throw DxvkError("DxvkComputePipeline::DxvkComputePipeline: Failed to compile pipeline");
Logger::err("DxvkComputePipeline: Failed to compile pipeline");
}
}

View File

@ -246,8 +246,11 @@ namespace dxvk {
VkPipeline pipeline = VK_NULL_HANDLE;
if (m_vkd->vkCreateGraphicsPipelines(m_vkd->device(),
m_cache->handle(), 1, &info, nullptr, &pipeline) != VK_SUCCESS)
throw DxvkError("DxvkGraphicsPipeline::DxvkGraphicsPipeline: Failed to compile pipeline");
m_cache->handle(), 1, &info, nullptr, &pipeline) != VK_SUCCESS) {
Logger::err("DxvkGraphicsPipeline: Failed to compile pipeline");
return VK_NULL_HANDLE;
}
return pipeline;
}