So, I created a project and copied this tutorial in it. When I tried to run it, it gave me this error: C2102 & requires l-value
at
m_commandList->ResourceBarrier(1, &CD3DX12_RESOURCE_BARRIER::Transition(m_renderTargets[m_frameIndex].Get(), D3D12_RESOURCE_STATE_PRESENT, D3D12_RESOURCE_STATE_RENDER_TARGET));
I searched a lot but i found nothing that fits in the context. What can I do to fix it?