mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-15 16:16:08 +00:00
Remove Variable::name().
This CL removes the name getter from the Variable class. All usages are updated to use the symbol. Change-Id: I3e4d86d2124d39023cad6113c62230c1757ece71 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/36780 Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
dan sinclair
parent
197a1b943d
commit
396b02342f
@@ -64,10 +64,11 @@ std::vector<EntryPoint> Inspector::GetEntryPoints() {
|
||||
entry_point.workgroup_size_z) = func->workgroup_size();
|
||||
|
||||
for (auto* var : func->referenced_module_variables()) {
|
||||
auto name = namer_->NameFor(var->symbol());
|
||||
if (var->storage_class() == ast::StorageClass::kInput) {
|
||||
entry_point.input_variables.push_back(var->name());
|
||||
entry_point.input_variables.push_back(name);
|
||||
} else {
|
||||
entry_point.output_variables.push_back(var->name());
|
||||
entry_point.output_variables.push_back(name);
|
||||
}
|
||||
}
|
||||
result.push_back(std::move(entry_point));
|
||||
|
||||
Reference in New Issue
Block a user