mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 10:25:28 +00:00
Exclude builtins from reflected stage variables
BUG=tint:456 Change-Id: I941b25dd5bf5e758d5fdecf379137d92d5db8556 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/38460 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org> Auto-Submit: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
d59cedb5a5
commit
b16a5d6e9b
@@ -66,6 +66,10 @@ std::vector<EntryPoint> Inspector::GetEntryPoints() {
|
||||
|
||||
for (auto* var : func->referenced_module_variables()) {
|
||||
auto name = module_.SymbolToName(var->symbol());
|
||||
if (var->HasBuiltinDecoration()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
StageVariable stage_variable;
|
||||
stage_variable.name = name;
|
||||
auto* location_decoration = var->GetLocationDecoration();
|
||||
@@ -82,6 +86,7 @@ std::vector<EntryPoint> Inspector::GetEntryPoints() {
|
||||
entry_point.output_variables.push_back(stage_variable);
|
||||
}
|
||||
}
|
||||
|
||||
result.push_back(std::move(entry_point));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user