Tags: DiligentGraphics/DiligentCore
Tags
Fix no-enum-constexpr-conversion compilation error in DX12 backend wi… …th 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 <61806567+TheMostDiligent@users.noreply.github.com>
PreviousNext