Slang is roughly source compatible with HLSL 2018, there is no HLSL 2020, and slang is not compatible with HLSL 2021. Related issue in Slang compiler from a while back: https://github.com/shader-slang/slang/pull/6502