You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix no-enum-constexpr-conversion compilation error in DX12 backend with clang-cl (#696)
The warning suppression -Wno-enum-constexpr-conversion no longer works
on recent Clang versions because the warning it used to suppress has been
promoted to an error that cannot be disabled
(see llvm/llvm-project#59036).
Also, the previous error in RootParamsManager.cpp was due to converting -1
to a D3D12_DESCRIPTOR_RANGE_TYPE enum in a constexpr context. Clang rejects
this, but it allows the conversion for a regular const. The code has been
updated to use a const instead of constexpr, making the conversion valid.
Since the original issue that motivated the warning suppression no longer
applies, we can safely remove -Wno-enum-constexpr-conversion.
Co-authored-by: Assiduous <[email protected]>
0 commit comments