【发布时间】:2021-06-14 09:12:26
【问题描述】:
使用 MSVC
m_commandList->ResourceBarrier(1, &CD3DX12_RESOURCE_BARRIER::Transition(...));
在 C++17 上运行良好,但在 C++20 上(预览 - 最新工作草案中的功能)我收到错误:
错误 C2102:“&”需要左值
有谁知道它是如何在 17 上不导致错误的?我们现在是否继续使用 C++17?
https://docs.microsoft.com/en-us/windows/win32/direct3d12/helper-structures-for-d3d12 https://docs.microsoft.com/en-us/windows/win32/direct3d12/using-resource-barriers-to-synchronize-resource-states-in-direct3d-12
【问题讨论】:
标签: c++ visual-c++ c++20 directx-12