mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-11 01:24:12 +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:
parent
4e1f9364e1
commit
e47c244ac3
@ -42,7 +42,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
if (m_vkd->vkCreateComputePipelines(m_vkd->device(),
|
if (m_vkd->vkCreateComputePipelines(m_vkd->device(),
|
||||||
m_cache->handle(), 1, &info, nullptr, &m_pipeline) != VK_SUCCESS)
|
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -246,8 +246,11 @@ namespace dxvk {
|
|||||||
|
|
||||||
VkPipeline pipeline = VK_NULL_HANDLE;
|
VkPipeline pipeline = VK_NULL_HANDLE;
|
||||||
if (m_vkd->vkCreateGraphicsPipelines(m_vkd->device(),
|
if (m_vkd->vkCreateGraphicsPipelines(m_vkd->device(),
|
||||||
m_cache->handle(), 1, &info, nullptr, &pipeline) != VK_SUCCESS)
|
m_cache->handle(), 1, &info, nullptr, &pipeline) != VK_SUCCESS) {
|
||||||
throw DxvkError("DxvkGraphicsPipeline::DxvkGraphicsPipeline: Failed to compile pipeline");
|
Logger::err("DxvkGraphicsPipeline: Failed to compile pipeline");
|
||||||
|
return VK_NULL_HANDLE;
|
||||||
|
}
|
||||||
|
|
||||||
return pipeline;
|
return pipeline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user