Add ast::ExternalTexture

Also create it in wgsl parser. With this, we now create all the AST type
nodes in the wgsl parser.

Bug: tint:724
Change-Id: I575c9eb0ffbd60c3e7aca0b00227d9833ef65d58
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/48962
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
Antonio Maiorano
2021-04-26 14:55:25 +00:00
committed by Commit Bot service account
parent 73fdc16c33
commit 31204afeb0
8 changed files with 193 additions and 8 deletions

View File

@@ -28,15 +28,11 @@ ExternalTexture::ExternalTexture(ExternalTexture&&) = default;
ExternalTexture::~ExternalTexture() = default;
std::string ExternalTexture::type_name() const {
std::ostringstream out;
out << "__external_texture";
return out.str();
return "__external_texture";
}
std::string ExternalTexture::FriendlyName(const SymbolTable&) const {
std::ostringstream out;
out << "texture_external";
return out.str();
return "texture_external";
}
ExternalTexture* ExternalTexture::Clone(CloneContext* ctx) const {