D3DCommon: Migrate logging over to fmt
Migrates the logging over to the fmt-capable logger.
This commit is contained in:
parent
2345d5f98d
commit
4d9a7c7a54
|
@ -126,8 +126,8 @@ std::optional<Shader::BinaryData> Shader::CompileShader(D3D_FEATURE_LEVEL featur
|
|||
|
||||
if (errors && errors->GetBufferSize() > 0)
|
||||
{
|
||||
WARN_LOG(VIDEO, "%s compilation succeeded with warnings:\n%s", target,
|
||||
static_cast<const char*>(errors->GetBufferPointer()));
|
||||
WARN_LOG_FMT(VIDEO, "{} compilation succeeded with warnings:\n{}", target,
|
||||
static_cast<const char*>(errors->GetBufferPointer()));
|
||||
}
|
||||
|
||||
return CreateByteCode(code->GetBufferPointer(), code->GetBufferSize());
|
||||
|
|
|
@ -134,7 +134,7 @@ bool SwapChain::CreateSwapChain(bool stereo)
|
|||
hr = m_dxgi_factory->MakeWindowAssociation(static_cast<HWND>(m_wsi.render_surface),
|
||||
DXGI_MWA_NO_WINDOW_CHANGES | DXGI_MWA_NO_ALT_ENTER);
|
||||
if (FAILED(hr))
|
||||
WARN_LOG(VIDEO, "MakeWindowAssociation() failed with HRESULT %08X", hr);
|
||||
WARN_LOG_FMT(VIDEO, "MakeWindowAssociation() failed with HRESULT {:08X}", hr);
|
||||
|
||||
m_stereo = stereo;
|
||||
if (!CreateSwapChainBuffers())
|
||||
|
@ -167,7 +167,7 @@ bool SwapChain::ResizeSwapChain()
|
|||
GetDXGIFormatForAbstractFormat(m_texture_format, false),
|
||||
GetSwapChainFlags());
|
||||
if (FAILED(hr))
|
||||
WARN_LOG(VIDEO, "ResizeBuffers() failed with HRESULT %08X", hr);
|
||||
WARN_LOG_FMT(VIDEO, "ResizeBuffers() failed with HRESULT {:08X}", hr);
|
||||
|
||||
DXGI_SWAP_CHAIN_DESC desc;
|
||||
if (SUCCEEDED(m_swap_chain->GetDesc(&desc)))
|
||||
|
@ -237,7 +237,7 @@ bool SwapChain::Present()
|
|||
HRESULT hr = m_swap_chain->Present(static_cast<UINT>(g_ActiveConfig.bVSyncActive), present_flags);
|
||||
if (FAILED(hr))
|
||||
{
|
||||
WARN_LOG(VIDEO, "Swap chain present failed with HRESULT %08X", hr);
|
||||
WARN_LOG_FMT(VIDEO, "Swap chain present failed with HRESULT {:08X}", hr);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue