Misc: Swap LIKELY/UNLIKELY macros for attributes

This commit is contained in:
Stenzek
2023-09-05 21:17:11 +10:00
parent adc124c759
commit 60aca2fc4d
8 changed files with 13 additions and 22 deletions

View File

@ -1563,7 +1563,7 @@ void D3D12Device::BeginRenderPass()
ID3D12GraphicsCommandList4* cmdlist = GetCommandList();
if (LIKELY(m_current_framebuffer))
if (m_current_framebuffer) [[likely]]
{
D3D12Texture* rt = static_cast<D3D12Texture*>(m_current_framebuffer->GetRT());
if (rt)