================
@@ -209,6 +209,12 @@ DXContainerYAML::RootSignatureYamlDesc::create(
NewS.RegisterSpace = S.RegisterSpace;
NewS.ShaderVisibility = dxbc::ShaderVisibility(S.ShaderVisibility);
+ if (Version > 2) {
+#define STATIC_SAMPLER_FLAG(Num, Enum, Flag)
\
+ NewS.Enum =
\
+ (S.Flags & llvm::to_underlying(dxbc::StaticSamplerFlags::Enum)) > 0;
----------------
inbelic wrote:
nit: I think the `> 0` comparison is redundant
https://github.com/llvm/llvm-project/pull/160184
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits