================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to