diff options
| author | Léo Lam <leo@leolam.fr> | 2020-12-02 20:45:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-02 20:45:27 +0100 |
| commit | b148b56fba41e2beb81c61e4d84bbecad0f33a53 (patch) | |
| tree | 9588abb91d50ca660e9f832eb8d751be73a8413d /Source/Core/VideoBackends/D3D12/DXContext.cpp | |
| parent | 00f2e0e494f644d0a559dc92f9eb94be0fab6913 (diff) | |
| parent | 139d4fc76e4ddf45179ca5ec5e42c52ef513ea4d (diff) | |
Merge pull request #9304 from lioncash/panic
General: Convert PanicAlerts over to fmt equivalent
Diffstat (limited to 'Source/Core/VideoBackends/D3D12/DXContext.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D12/DXContext.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Core/VideoBackends/D3D12/DXContext.cpp b/Source/Core/VideoBackends/D3D12/DXContext.cpp index 9614ad108f..2fed2d611c 100644 --- a/Source/Core/VideoBackends/D3D12/DXContext.cpp +++ b/Source/Core/VideoBackends/D3D12/DXContext.cpp @@ -99,7 +99,7 @@ bool DXContext::Create(u32 adapter_index, bool enable_debug_layer) !s_d3d12_library.GetSymbol("D3D12GetDebugInterface", &s_d3d12_get_debug_interface) || !s_d3d12_library.GetSymbol("D3D12SerializeRootSignature", &s_d3d12_serialize_root_signature)) { - PanicAlertT("d3d12.dll could not be loaded."); + PanicAlertFmtT("d3d12.dll could not be loaded."); s_d3d12_library.Close(); return false; } @@ -253,7 +253,7 @@ bool DXContext::CreateDescriptorHeaps() if (!m_descriptor_heap_manager.Allocate(&m_null_srv_descriptor)) { - PanicAlert("Failed to allocate null descriptor"); + PanicAlertFmt("Failed to allocate null descriptor"); return false; } @@ -303,8 +303,8 @@ static bool BuildRootSignature(ID3D12Device* device, ID3D12RootSignature** sig_p &root_signature_blob, &root_signature_error_blob); if (FAILED(hr)) { - PanicAlert("Failed to serialize root signature: %s", - static_cast<const char*>(root_signature_error_blob->GetBufferPointer())); + PanicAlertFmt("Failed to serialize root signature: {}", + static_cast<const char*>(root_signature_error_blob->GetBufferPointer())); return false; } @@ -400,7 +400,7 @@ bool DXContext::CreateTextureUploadBuffer() { if (!m_texture_upload_buffer.AllocateBuffer(TEXTURE_UPLOAD_BUFFER_SIZE)) { - PanicAlert("Failed to create texture upload buffer"); + PanicAlertFmt("Failed to create texture upload buffer"); return false; } @@ -425,7 +425,7 @@ bool DXContext::CreateCommandLists() nullptr, IID_PPV_ARGS(res.command_list.GetAddressOf())); if (FAILED(hr)) { - PanicAlert("Failed to create command list."); + PanicAlertFmt("Failed to create command list."); return false; } @@ -508,7 +508,7 @@ void DXContext::RecreateGXRootSignature() { m_gx_root_signature.Reset(); if (!CreateGXRootSignature()) - PanicAlert("Failed to re-create GX root signature."); + PanicAlertFmt("Failed to re-create GX root signature."); } void DXContext::DestroyPendingResources(CommandListResources& cmdlist) |
