mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
VideoBackends/D3D12: Include HRESULT in error messages
This commit is contained in:
@ -210,8 +210,8 @@ std::unique_ptr<DXPipeline> DXPipeline::Create(const AbstractPipelineConfig& con
|
||||
HRESULT hr = g_dx_context->GetDevice()->CreateGraphicsPipelineState(&desc, IID_PPV_ARGS(&pso));
|
||||
if (FAILED(hr))
|
||||
{
|
||||
WARN_LOG_FMT(VIDEO, "CreateGraphicsPipelineState() {}failed with HRESULT {:08X}",
|
||||
cache_data ? "with cache data " : "", hr);
|
||||
WARN_LOG_FMT(VIDEO, "CreateGraphicsPipelineState() {}failed: {}",
|
||||
cache_data ? "with cache data " : "", DX12HRWrap(hr));
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@ -227,7 +227,7 @@ AbstractPipeline::CacheData DXPipeline::GetCacheData() const
|
||||
HRESULT hr = m_pipeline->GetCachedBlob(&blob);
|
||||
if (FAILED(hr))
|
||||
{
|
||||
WARN_LOG_FMT(VIDEO, "ID3D12Pipeline::GetCachedBlob() failed with HRESULT {:08X}", hr);
|
||||
WARN_LOG_FMT(VIDEO, "ID3D12Pipeline::GetCachedBlob() failed: {}", DX12HRWrap(hr));
|
||||
return {};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user