How can I fix “& requires l-value” [closed]
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 21 days ago . Improve this question 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