Misc: Replace log printf calls with fmt
This commit is contained in:
@ -152,8 +152,8 @@ D3D11Device::ComPtr<ID3D11RasterizerState> D3D11Device::GetRasterizationState(co
|
||||
// desc.MultisampleEnable ???
|
||||
|
||||
HRESULT hr = m_device->CreateRasterizerState(&desc, drs.GetAddressOf());
|
||||
if (FAILED(hr))
|
||||
Log_ErrorPrintf("Failed to create depth state with %08X", hr);
|
||||
if (FAILED(hr)) [[unlikely]]
|
||||
Log_ErrorFmt("Failed to create depth state with {:08X}", static_cast<unsigned>(hr));
|
||||
|
||||
m_rasterization_states.emplace(rs.key, drs);
|
||||
return drs;
|
||||
@ -187,8 +187,8 @@ D3D11Device::ComPtr<ID3D11DepthStencilState> D3D11Device::GetDepthState(const GP
|
||||
desc.DepthWriteMask = ds.depth_write ? D3D11_DEPTH_WRITE_MASK_ALL : D3D11_DEPTH_WRITE_MASK_ZERO;
|
||||
|
||||
HRESULT hr = m_device->CreateDepthStencilState(&desc, dds.GetAddressOf());
|
||||
if (FAILED(hr))
|
||||
Log_ErrorPrintf("Failed to create depth state with %08X", hr);
|
||||
if (FAILED(hr)) [[unlikely]]
|
||||
Log_ErrorFmt("Failed to create depth state with {:08X}", static_cast<unsigned>(hr));
|
||||
|
||||
m_depth_states.emplace(ds.key, dds);
|
||||
return dds;
|
||||
@ -245,8 +245,8 @@ D3D11Device::ComPtr<ID3D11BlendState> D3D11Device::GetBlendState(const GPUPipeli
|
||||
}
|
||||
|
||||
HRESULT hr = m_device->CreateBlendState(&blend_desc, dbs.GetAddressOf());
|
||||
if (FAILED(hr))
|
||||
Log_ErrorPrintf("Failed to create blend state with %08X", hr);
|
||||
if (FAILED(hr)) [[unlikely]]
|
||||
Log_ErrorFmt("Failed to create blend state with {:08X}", static_cast<unsigned>(hr));
|
||||
|
||||
m_blend_states.emplace(bs.key, dbs);
|
||||
return dbs;
|
||||
@ -297,8 +297,8 @@ D3D11Device::ComPtr<ID3D11InputLayout> D3D11Device::GetInputLayout(const GPUPipe
|
||||
|
||||
HRESULT hr = m_device->CreateInputLayout(elems, static_cast<UINT>(il.vertex_attributes.size()),
|
||||
vs->GetBytecode().data(), vs->GetBytecode().size(), dil.GetAddressOf());
|
||||
if (FAILED(hr))
|
||||
Log_ErrorPrintf("Failed to create input layout with %08X", hr);
|
||||
if (FAILED(hr)) [[unlikely]]
|
||||
Log_ErrorFmt("Failed to create input layout with {:08X}", static_cast<unsigned>(hr));
|
||||
|
||||
m_input_layouts.emplace(il, dil);
|
||||
return dil;
|
||||
|
||||
Reference in New Issue
Block a user