We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8c6879 commit 5c25e86Copy full SHA for 5c25e86
clang/lib/Sema/SemaHLSL.cpp
@@ -992,6 +992,14 @@ class ResourceRanges {
992
if (Res.has_value())
993
return Res;
994
995
+ // If the range that we are inserting has ShaderVisiblity::All it needs to
996
+ // check for an overlap in all other visibility types as well.
997
+ // Otherwise, the range that is inserted needs to check that it does not
998
+ // overlap with ShaderVisibility::All.
999
+ //
1000
+ // Maps will be an ArrayRef to all non-all visibility RangeMaps in the
1001
+ // former case and it will be an ArrayRef to just the all visiblity
1002
+ // RangeMap in the latter case.
1003
MutableArrayRef<MapT> Maps =
1004
Info.Vis == llvm::hlsl::rootsig::ShaderVisibility::All
1005
? MutableArrayRef<MapT>{RangeMaps}.drop_front()
0 commit comments