diff --git a/src/tint/transform/multiplanar_external_texture.cc b/src/tint/transform/multiplanar_external_texture.cc index 310bc46a51..dcf1e1c83a 100644 --- a/src/tint/transform/multiplanar_external_texture.cc +++ b/src/tint/transform/multiplanar_external_texture.cc @@ -33,14 +33,8 @@ namespace tint::transform { namespace { bool ShouldRun(const Program* program) { - for (auto* node : program->ASTNodes().Objects()) { - if (auto* expr = node->As()) { - if (Is(program->TypeOf(expr))) { - return true; - } - } - } - return false; + auto ext = program->Types().Find(); + return ext != nullptr; } /// This struct stores symbols for new bindings created as a result of transforming a