Replace usages of BoundArrayAccessors w/ Robustness
BoundArrayAccessors is an alias to Robustness, and removing it from Tint will make code easier to read and search. BUG=tint:1212 Change-Id: I31aabfcef396290178eff6ea8db7e5bb70b031ca Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/66061 Auto-Submit: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
080c5cae3e
commit
43d5849408
|
@ -380,7 +380,7 @@ namespace dawn_native { namespace d3d12 {
|
|||
tint::transform::DataMap transformInputs;
|
||||
|
||||
if (request.isRobustnessEnabled) {
|
||||
transformManager.Add<tint::transform::BoundArrayAccessors>();
|
||||
transformManager.Add<tint::transform::Robustness>();
|
||||
}
|
||||
transformManager.Add<tint::transform::BindingRemapper>();
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ namespace dawn_native { namespace metal {
|
|||
}
|
||||
}
|
||||
if (GetDevice()->IsRobustnessEnabled()) {
|
||||
transformManager.Add<tint::transform::BoundArrayAccessors>();
|
||||
transformManager.Add<tint::transform::Robustness>();
|
||||
}
|
||||
transformManager.Add<tint::transform::BindingRemapper>();
|
||||
transformManager.Add<tint::transform::Renamer>();
|
||||
|
|
|
@ -84,13 +84,12 @@ namespace dawn_native { namespace vulkan {
|
|||
if (GetDevice()->IsRobustnessEnabled()) {
|
||||
ScopedTintICEHandler scopedICEHandler(GetDevice());
|
||||
|
||||
tint::transform::BoundArrayAccessors boundArrayAccessors;
|
||||
tint::transform::Robustness robustness;
|
||||
tint::transform::DataMap transformInputs;
|
||||
|
||||
tint::Program program;
|
||||
DAWN_TRY_ASSIGN(program,
|
||||
RunTransforms(&boundArrayAccessors, parseResult->tintProgram.get(),
|
||||
transformInputs, nullptr, nullptr));
|
||||
DAWN_TRY_ASSIGN(program, RunTransforms(&robustness, parseResult->tintProgram.get(),
|
||||
transformInputs, nullptr, nullptr));
|
||||
// Rather than use a new ParseResult object, we just reuse the original parseResult
|
||||
parseResult->tintProgram = std::make_unique<tint::Program>(std::move(program));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue