mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-12 14:46:08 +00:00
Remove the context object.
This CL strips the context object out of Tint. Change-Id: Id0dcb9c557b217c03a8d9ac08fc9fe1c799f3fdc Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34742 Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
bd018d254d
commit
c35176eadf
@@ -21,7 +21,6 @@
|
||||
#include "src/ast/expression.h"
|
||||
#include "src/ast/module.h"
|
||||
#include "src/ast/statement.h"
|
||||
#include "src/context.h"
|
||||
#include "src/scope_stack.h"
|
||||
#include "src/transform/transform.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/module.h"
|
||||
#include "src/context.h"
|
||||
#include "src/diagnostic/diagnostic.h"
|
||||
|
||||
namespace tint {
|
||||
|
||||
@@ -58,7 +58,7 @@ class VertexPullingHelper {
|
||||
void InitTransform(VertexStateDescriptor vertex_state) {
|
||||
EXPECT_TRUE(mod_->IsValid());
|
||||
|
||||
TypeDeterminer td(&ctx_, mod_.get());
|
||||
TypeDeterminer td(mod_.get());
|
||||
EXPECT_TRUE(td.Determine());
|
||||
|
||||
transform_->SetVertexState(vertex_state);
|
||||
@@ -80,6 +80,7 @@ class VertexPullingHelper {
|
||||
}
|
||||
|
||||
ast::Module* mod() { return mod_.get(); }
|
||||
|
||||
Manager* manager() { return manager_.get(); }
|
||||
VertexPulling* transform() { return transform_; }
|
||||
|
||||
@@ -93,7 +94,6 @@ class VertexPullingHelper {
|
||||
}
|
||||
|
||||
private:
|
||||
Context ctx_;
|
||||
std::unique_ptr<ast::Module> mod_;
|
||||
std::unique_ptr<Manager> manager_;
|
||||
VertexPulling* transform_;
|
||||
|
||||
Reference in New Issue
Block a user