diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-12-02 13:17:27 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-12-02 13:38:33 -0500 |
| commit | 139d4fc76e4ddf45179ca5ec5e42c52ef513ea4d (patch) | |
| tree | a639ad5dfd8a1b85eb32d408e2068dce9f41ce00 /Source/Core/VideoBackends/D3D12/DXTexture.cpp | |
| parent | 5abae61a8c7e0e4ac03bb8d3031793037e87fdd3 (diff) | |
General: Convert PanicAlerts over to fmt equivalent
Converts lingering panic alert calls over to the fmt-capable ones.
Diffstat (limited to 'Source/Core/VideoBackends/D3D12/DXTexture.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D12/DXTexture.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Core/VideoBackends/D3D12/DXTexture.cpp b/Source/Core/VideoBackends/D3D12/DXTexture.cpp index df63e13044..fae8361da2 100644 --- a/Source/Core/VideoBackends/D3D12/DXTexture.cpp +++ b/Source/Core/VideoBackends/D3D12/DXTexture.cpp @@ -128,7 +128,7 @@ std::unique_ptr<DXTexture> DXTexture::CreateAdopted(ID3D12Resource* resource) if (desc.Dimension != D3D12_RESOURCE_DIMENSION_TEXTURE2D || format == AbstractTextureFormat::Undefined) { - PanicAlert("Unknown format for adopted texture"); + PanicAlertFmt("Unknown format for adopted texture"); return nullptr; } @@ -154,7 +154,7 @@ bool DXTexture::CreateSRVDescriptor() { if (!g_dx_context->GetDescriptorHeapManager().Allocate(&m_srv_descriptor)) { - PanicAlert("Failed to allocate SRV descriptor"); + PanicAlertFmt("Failed to allocate SRV descriptor"); return false; } @@ -181,7 +181,7 @@ bool DXTexture::CreateUAVDescriptor() { if (!g_dx_context->GetDescriptorHeapManager().Allocate(&m_uav_descriptor)) { - PanicAlert("Failed to allocate UAV descriptor"); + PanicAlertFmt("Failed to allocate UAV descriptor"); return false; } @@ -225,7 +225,7 @@ void DXTexture::Load(u32 level, u32 width, u32 height, u32 row_length, const u8* staging_buffer = CreateTextureUploadBuffer(upload_size); if (!staging_buffer || FAILED(staging_buffer->Map(0, &read_range, &upload_buffer_ptr))) { - PanicAlert("Failed to allocate/map temporary texture upload buffer"); + PanicAlertFmt("Failed to allocate/map temporary texture upload buffer"); return; } @@ -245,7 +245,7 @@ void DXTexture::Load(u32 level, u32 width, u32 height, u32 row_length, const u8* if (!g_dx_context->GetTextureUploadBuffer().ReserveMemory( upload_size, D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT)) { - PanicAlert("Failed to allocate texture upload buffer"); + PanicAlertFmt("Failed to allocate texture upload buffer"); return; } } @@ -436,7 +436,7 @@ bool DXFramebuffer::CreateRTVDescriptor() { if (!g_dx_context->GetRTVHeapManager().Allocate(&m_rtv_descriptor)) { - PanicAlert("Failed to allocate RTV descriptor"); + PanicAlertFmt("Failed to allocate RTV descriptor"); return false; } @@ -471,7 +471,7 @@ bool DXFramebuffer::CreateDSVDescriptor() { if (!g_dx_context->GetDSVHeapManager().Allocate(&m_dsv_descriptor)) { - PanicAlert("Failed to allocate RTV descriptor"); + PanicAlertFmt("Failed to allocate RTV descriptor"); return false; } |
