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/VertexManager.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/VertexManager.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D12/VertexManager.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/VideoBackends/D3D12/VertexManager.cpp b/Source/Core/VideoBackends/D3D12/VertexManager.cpp index 01d9e8a452..66dafa533a 100644 --- a/Source/Core/VideoBackends/D3D12/VertexManager.cpp +++ b/Source/Core/VideoBackends/D3D12/VertexManager.cpp @@ -39,7 +39,7 @@ bool VertexManager::Initialize() !m_uniform_stream_buffer.AllocateBuffer(UNIFORM_STREAM_BUFFER_SIZE) || !m_texel_stream_buffer.AllocateBuffer(TEXEL_STREAM_BUFFER_SIZE)) { - PanicAlert("Failed to allocate streaming buffers"); + PanicAlertFmt("Failed to allocate streaming buffers"); return false; } @@ -55,7 +55,7 @@ bool VertexManager::Initialize() DescriptorHandle& dh = m_texel_buffer_views[it.first]; if (!g_dx_context->GetDescriptorHeapManager().Allocate(&dh)) { - PanicAlert("Failed to allocate descriptor for texel buffer"); + PanicAlertFmt("Failed to allocate descriptor for texel buffer"); return false; } @@ -92,7 +92,7 @@ void VertexManager::ResetBuffer(u32 vertex_stride) // If we still failed, that means the allocation was too large and will never succeed, so panic if (!has_vbuffer_allocation || !has_ibuffer_allocation) - PanicAlert("Failed to allocate space in streaming buffers for pending draw"); + PanicAlertFmt("Failed to allocate space in streaming buffers for pending draw"); } // Update pointers @@ -208,7 +208,7 @@ void VertexManager::UploadAllConstants() if (!m_uniform_stream_buffer.ReserveMemory(allocation_size, D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT)) { - PanicAlert("Failed to allocate space for constants in streaming buffer"); + PanicAlertFmt("Failed to allocate space for constants in streaming buffer"); return; } @@ -270,7 +270,7 @@ bool VertexManager::UploadTexelBuffer(const void* data, u32 data_size, TexelBuff Renderer::GetInstance()->ExecuteCommandList(false); if (!m_texel_stream_buffer.ReserveMemory(data_size, elem_size)) { - PanicAlert("Failed to allocate %u bytes from texel buffer", data_size); + PanicAlertFmt("Failed to allocate {} bytes from texel buffer", data_size); return false; } } @@ -300,7 +300,7 @@ bool VertexManager::UploadTexelBuffer(const void* data, u32 data_size, TexelBuff Renderer::GetInstance()->ExecuteCommandList(false); if (!m_texel_stream_buffer.ReserveMemory(reserve_size, elem_size)) { - PanicAlert("Failed to allocate %u bytes from texel buffer", reserve_size); + PanicAlertFmt("Failed to allocate {} bytes from texel buffer", reserve_size); return false; } } |
