mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
Migrate from tint::ast::Module to tint::Program
Depends on: https://dawn-review.googlesource.com/c/tint/+/38556 Bug: tint:390 Change-Id: I12104d80370ddc1a3277770ca051cbd0992b758e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/38522 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
b3177d418e
commit
e0feccacaf
@@ -79,17 +79,17 @@ namespace DawnSPIRVCrossFuzzer {
|
||||
return 0;
|
||||
}
|
||||
|
||||
tint::ast::Module module = parser.module();
|
||||
if (!module.IsValid()) {
|
||||
tint::Program program = parser.program();
|
||||
if (!program.IsValid()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
tint::TypeDeterminer type_determiner(&module);
|
||||
tint::TypeDeterminer type_determiner(&program);
|
||||
if (!type_determiner.Determine()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
tint::writer::spirv::Generator generator(std::move(module));
|
||||
tint::writer::spirv::Generator generator(&program);
|
||||
if (!generator.Generate()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user