mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
Remove deprecated APIs
Remove the Parser classes from the wgsl and spirv namespaces. These have been replaced with a Parse() method. Remove the TypeDeterminer::Run() method, this was not called by tint and the TypeDeterminer is now non-public API. Change-Id: I5ddb82768da04398ab3958d1647be44f9fe30c21 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/41840 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
6b4924fb0e
commit
7206e25798
@@ -42,16 +42,12 @@ class TransformTest : public testing::Test {
|
||||
std::string Transform(
|
||||
std::string in,
|
||||
std::vector<std::unique_ptr<transform::Transform>> transforms) {
|
||||
Source::File file("test", in);
|
||||
reader::wgsl::Parser parser(&file);
|
||||
if (!parser.Parse()) {
|
||||
return "WGSL reader failed:\n" + parser.error();
|
||||
}
|
||||
|
||||
diag::Formatter::Style style;
|
||||
style.print_newline_at_end = false;
|
||||
|
||||
auto program = parser.program();
|
||||
Source::File file("test", in);
|
||||
auto program = reader::wgsl::Parse(&file);
|
||||
|
||||
if (!program.IsValid()) {
|
||||
return diag::Formatter(style).format(program.Diagnostics());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user