writer/wgsl: Fix texture_external type emission

Change-Id: I5a622637a03483776b3b4bb2d2b46ad77d3e9eb4
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59820
Auto-Submit: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
James Price 2021-07-26 22:02:28 +00:00 committed by Tint LUCI CQ
parent 60d1eb6688
commit 00320c2580
6 changed files with 6 additions and 6 deletions

View File

@ -710,7 +710,7 @@ fn f() {
[[group(0), binding(0)]] var tex_storage_3d : texture_storage_3d<rgba8sint, read>;
[[group(0), binding(0)]] var tex_external : external_texture;
[[group(0), binding(0)]] var tex_external : texture_external;
fn f() {
var array_idx : i32;

View File

@ -434,7 +434,7 @@ bool GeneratorImpl::EmitType(std::ostream& out, const ast::Type* ty) {
out << "_comparison";
}
} else if (ty->Is<ast::ExternalTexture>()) {
out << "external_texture";
out << "texture_external";
} else if (auto* texture = ty->As<ast::Texture>()) {
out << "texture_";
if (texture->Is<ast::DepthTexture>()) {

View File

@ -1,4 +1,4 @@
[[group(1), binding(0)]] var arg_0 : external_texture;
[[group(1), binding(0)]] var arg_0 : texture_external;
fn ignore_5c9edf() {
ignore(arg_0);

View File

@ -1,4 +1,4 @@
[[group(1), binding(0)]] var arg_0 : external_texture;
[[group(1), binding(0)]] var arg_0 : texture_external;
fn textureDimensions_ba1481() {
var res : vec2<i32> = textureDimensions(arg_0);

View File

@ -1,4 +1,4 @@
[[group(1), binding(0)]] var arg_0 : external_texture;
[[group(1), binding(0)]] var arg_0 : texture_external;
fn textureLoad_8acf41() {
var res : vec4<f32> = textureLoad(arg_0, vec2<i32>());

View File

@ -1,4 +1,4 @@
[[group(1), binding(0)]] var arg_0 : external_texture;
[[group(1), binding(0)]] var arg_0 : texture_external;
[[group(1), binding(1)]] var arg_1 : sampler;