[wgsl-writer] Emit @row_major attributes

This is needed for unit tests.

Bug: 364267168
Change-Id: Ife82aa64875f96db3c6bdb4005ac3c790dcedb56
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/207415
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: James Price <jrprice@google.com>
diff --git a/src/tint/lang/wgsl/writer/ast_printer/ast_printer.cc b/src/tint/lang/wgsl/writer/ast_printer/ast_printer.cc
index 9240566..6a4e009 100644
--- a/src/tint/lang/wgsl/writer/ast_printer/ast_printer.cc
+++ b/src/tint/lang/wgsl/writer/ast_printer/ast_printer.cc
@@ -68,6 +68,7 @@
 #include "src/tint/lang/wgsl/ast/override.h"
 #include "src/tint/lang/wgsl/ast/phony_expression.h"
 #include "src/tint/lang/wgsl/ast/return_statement.h"
+#include "src/tint/lang/wgsl/ast/row_major_attribute.h"
 #include "src/tint/lang/wgsl/ast/stage_attribute.h"
 #include "src/tint/lang/wgsl/ast/stride_attribute.h"
 #include "src/tint/lang/wgsl/ast/struct_member_align_attribute.h"
@@ -531,6 +532,7 @@
                 out << ")";
             },
             [&](const ast::MustUseAttribute*) { out << "must_use"; },
+            [&](const ast::RowMajorAttribute*) { out << "row_major"; },
             [&](const ast::StructMemberOffsetAttribute* offset) {
                 out << "offset(";
                 EmitExpression(out, offset->expr);