mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 09:09:04 +00:00
VideoBackends/D3D12: Include HRESULT in error messages
This commit is contained in:
parent
23cdb5c576
commit
1b32e6dae2
11 changed files with 77 additions and 36 deletions
|
@ -34,7 +34,7 @@ bool SwapChain::CreateSwapChainBuffers()
|
|||
{
|
||||
ComPtr<ID3D12Resource> resource;
|
||||
HRESULT hr = m_swap_chain->GetBuffer(i, IID_PPV_ARGS(&resource));
|
||||
ASSERT_MSG(VIDEO, SUCCEEDED(hr), "Failed to get swap chain buffer {}", i);
|
||||
ASSERT_MSG(VIDEO, SUCCEEDED(hr), "Failed to get swap chain buffer {}: {}", i, DX12HRWrap(hr));
|
||||
|
||||
BufferResources buffer;
|
||||
buffer.texture = DXTexture::CreateAdopted(resource.Get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue