mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 10:25:28 +00:00
Program: Remove deprecated function methods
Fixup all usages Bug: tint:390 Change-Id: I949235908e50702d6c8b2e7e2299594879653e01 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/38547 Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
@@ -50,7 +50,7 @@ Inspector::~Inspector() = default;
|
||||
std::vector<EntryPoint> Inspector::GetEntryPoints() {
|
||||
std::vector<EntryPoint> result;
|
||||
|
||||
for (auto* func : program_.Functions()) {
|
||||
for (auto* func : program_.AST().Functions()) {
|
||||
if (!func->IsEntryPoint()) {
|
||||
continue;
|
||||
}
|
||||
@@ -283,7 +283,7 @@ std::vector<ResourceBinding> Inspector::GetMultisampledTextureResourceBindings(
|
||||
}
|
||||
|
||||
ast::Function* Inspector::FindEntryPointByName(const std::string& name) {
|
||||
auto* func = program_.Functions().Find(program_.GetSymbol(name));
|
||||
auto* func = program_.AST().Functions().Find(program_.GetSymbol(name));
|
||||
if (!func) {
|
||||
error_ += name + " was not found!";
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user