Add texture_external to inspector

Adds texture_external to the inspector, allowing us to recognize the
type and return provide binding information. Includes a basic test.

Bug: Dawn:728
Change-Id: Ib0f39998359dc22a530ad222141229f9ba30552f
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51161
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Brandon Jones <brandon1.jones@intel.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Brandon Jones
2021-05-17 17:40:17 +00:00
committed by Commit Bot service account
parent a965ad4d3a
commit 7b25769aed
7 changed files with 114 additions and 2 deletions

View File

@@ -869,6 +869,12 @@ class ProgramBuilder {
dims, format, ast::AccessControl::kInvalid, sem_subtype)};
}
/// @returns the external texture
typ::ExternalTexture external_texture() const {
return {builder->create<ast::ExternalTexture>(),
builder->create<sem::ExternalTexture>()};
}
/// @param source the Source of the node
/// @returns the external texture
typ::ExternalTexture external_texture(const Source& source) const {