With MSVC
m_commandList->ResourceBarrier(1, &CD3DX12_RESOURCE_BARRIER::Transition(...));
works fine on C++17 but on C++20 (Preview - Features from the latest working draft) I get the error:
error C2102: '&' requires l-value
Does anyone know how it's not causing an error on 17? Do we just keep using C++17 for now?
https://learn.microsoft.com/en-us/windows/win32/direct3d12/helper-structures-for-d3d12 https://learn.microsoft.com/en-us/windows/win32/direct3d12/using-resource-barriers-to-synchronize-resource-states-in-direct3d-12