[wgsl-reader] Parsing image storage type Bug: tint:147 Change-Id: I79713b5dfa0a4b219cff7a6bb3c514557cf4f261 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/28121 Reviewed-by: David Neto <dneto@google.com> Commit-Queue: David Neto <dneto@google.com>
diff --git a/src/reader/wgsl/parser_impl.h b/src/reader/wgsl/parser_impl.h index 3f3073f..76dea6d 100644 --- a/src/reader/wgsl/parser_impl.h +++ b/src/reader/wgsl/parser_impl.h
@@ -40,6 +40,7 @@ #include "src/ast/struct_decoration.h" #include "src/ast/struct_member.h" #include "src/ast/struct_member_decoration.h" +#include "src/ast/type/storage_texture_type.h" #include "src/ast/type/texture_type.h" #include "src/ast/type/type.h" #include "src/ast/variable.h" @@ -193,6 +194,9 @@ /// Parses a `depth_texture_type` grammar element /// @returns the parsed Type or nullptr if none matched. ast::type::Type* depth_texture_type(); + /// Parses a `image_storage_type` grammar element + /// @returns returns the image format or kNone if none matched. + ast::type::ImageFormat image_storage_type(); /// Parses a `function_type_decl` grammar element /// @returns the parsed type or nullptr otherwise ast::type::Type* function_type_decl();