mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 05:27:49 +00:00
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:
committed by
Commit Bot service account
parent
a965ad4d3a
commit
7b25769aed
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user