[llvm-branch-commits] [llvm] [HLSL][RootSignature] Implement serialization of remaining Root Elements (PR #143198)
Chris B via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jun 6 13:34:35 PDT 2025
================
@@ -71,6 +71,199 @@ static raw_ostream &operator<<(raw_ostream &OS,
return OS;
}
+static raw_ostream &operator<<(raw_ostream &OS, const SamplerFilter &Filter) {
+ switch (Filter) {
+ case SamplerFilter::MinMagMipPoint:
+ OS << "MinMagMipPoint";
----------------
llvm-beanz wrote:
Could we instead use `llvm::EnumEntry` from `llvm::ScopedPrinter` to translate enums to strings? That allows the mechanism to be reused rather than single purpose.
https://github.com/llvm/llvm-project/pull/143198
More information about the llvm-branch-commits
mailing list