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 4a2761d commit 153b38fCopy full SHA for 153b38f
clang/lib/Sema/SemaHLSL.cpp
@@ -1145,7 +1145,7 @@ bool SemaHLSL::handleRootSignatureElements(
1145
"By construction, parseFloatParam can't produce a NaN from a "
1146
"float_literal token");
1147
1148
- if (16 < Sampler->MaxAnisotropy)
+ if (!llvm::hlsl::rootsig::verifyMaxAnisotropy(Sampler->MaxAnisotropy))
1149
ReportError(Loc, 0, 16);
1150
if (!llvm::hlsl::rootsig::verifyMipLODBias(Sampler->MipLODBias))
1151
ReportFloatError(Loc, -16.f, 15.99);
0 commit comments